govuk-one-login/Upload Containers to ECR, update references in CF templates

Packages and uploads, replaces reference in (eg) template.yaml

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 9, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: govuk-one-login/devplatform-upload-action-ecr@d839fc3ead8c9d9f18f7a8cceb7ab4a3eab18a58 # v1.7.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
role-to-assume-arnThe secret with the ARN of the role to assume (required) eg secrets.GH_ACTIONS_ROLE_ARNyes
container-sign-kms-key-arnThe secret with the ARN of the key to sign container images e.g. secrets.CONTAINER_SIGN_KMS_KEYnonone
build-and-push-image-onlyOnly run docker build, push and signing steps. Skip packaging and artifact uploadsnofalse
template-fileThe name of the CF template for the application. This defaults to template.yamlnotemplate.yaml
working-directoryThe working directory containing the appno.
artifact-bucket-nameThe secret with the name of the artifact S3 bucket (required) eg secrets.ARTIFACT_SOURCE_BUCKET_NAMEyes
ecr-repo-nameThe secret with the name of the ECR Repo (required) eg secrets.ECR_REPOSITORYyes
dockerfileThe Dockerfile to use for the buildnoDockerfile
docker-build-pathThe Dockerfile path to use for the buildno
docker-platformThe target architecture for the image buildno""
docker-targetThe target stage to build in a multi-stage Dockerfileno""
checkout-repoChecks out the repo as the first step of the action. Default "true".notrue
private-docker-registryPrivate Docker registry URLno""
private-docker-login-usernameLogin username to the private docker registryno""
private-docker-login-passwordLogin password to the private docker registryno""
push-latest-tagFloat 'latest' tag to the latest image version. This requires tag immutability disabled, a typical use case is test-image-repository containersnofalse
version-numberThe version number of the application being deployed. This defaults to ""'no""

no outputs