citizensadvice/Build and push to a private ECR

Build and push a Docker image to a private ERC, written for CA repositories.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
role_arnA role to assume with permission to push to the Private ECR repositorynoarn:aws:iam::979633842206:role/PrivateECRPush
dockerfile_contextThe context of the Dockerfile. Defaults to root of project.no.
dockerfileThe name of the dockerfile to build. Defaults to DockerfilenoDockerfile
build-argsList of build-time variablesno
repository_nameThe name of the ECR repository. Will be used as the name of the Docker imageyes
auth_tokenA token to pull the repository. Usually GITHUB_TOKENyes
multiarch_buildBuild a `linux/arm64` image as well as `linux/amd64`. Defaults to disablednodisabled
push_after_buildPush the image after building it. Useful if you need to run tests on the image before you push it. Defaults to `true`notrue
prod_imageTag the image as a production image. Adds `latest tag` on push. Defaults to falsenofalse
tags_overrideOverride the default tags. This will replace ALL of the default tagsno""
namedescription
image_idID of the image
image_digestDigest of the image
image_tagsA CSV list of the image tags