Files
pin-digest/action.yml
T

26 lines
1.4 KiB
YAML

# ══════════════════════════════════════════════════════════════════
# BREAKING CHANGE? BUMP THE MAJOR IN cue/cluster/cluster.cue
# ══════════════════════════════════════════════════════════════════
# Everything pinning `@v1` gets this the moment it publishes. A change
# a consumer cannot absorb needs a new major, or it breaks them.
# ══════════════════════════════════════════════════════════════════
name: pin-digest
description: Open a pull request moving every action's pinned toolbox digest to a newly built image.
inputs:
image:
description: The image to pin, as name@sha256:digest. Pass build-image's `image` output.
required: true
runs:
using: docker
# By digest, like every other action. This one runs in the image it is about
# to replace, which is what makes it work at all.
image: docker://git.512.dev/ci/toolbox@sha256:141d3edc5678826538cf4dea46f1bb5636c962a3147add34c42e2e00d0f879c3
entrypoint: /usr/local/lib/actions/pin-digest.sh
env:
PLUGIN_IMAGE: ${{ inputs.image }}