catalystcommunity/Build and Push Image to ECR

Builds and pushs an image to an AWS ECR repository

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Aug 5, 2024
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: catalystcommunity/action-build-push-image-ecr@776cb8921fbe88b33f1028797913678217bc21a4 # v1.3.0

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

namedescriptionrequireddefault
ecr-repositoryName of ECR repository to push images to. Defaults to the Git repository's name.no${{ github.repository }}
aws-access-key-idAWS secret key ID. Required.yes
role-skip-session-taggingSkip AWS session tagging for the role assumption stepfalse
aws-secret-access-keyAWS secret access key. Required.yes
aws-regionAWS region. Required.yes
role-to-assumeAWS IAM role to assume.no
role-external-idAWS IAM role external idno
role-duration-secondsAWS IAM role assumption duration secondsno900
create-missing-repositoriesCreates the ECR repository if it does not existnotrue
role-session-nameAWS IAM role assumption session namenoaction-build-push-image-ecr
extra-account-accessList of AWS accounts to add access forno""
tag-versionsgit tags to push, comma separated string such as `latest,v1.0.0`nolatest,${{ github.event.release.tag_name }}
build-secretsdocker build secrets. key=value pairs separated by newlines. See [docker build push action secrets configuration](https://github.com/docker/build-push-action/blob/master/docs/advanced/secrets.md) for detailsno""
docker-contextdocker context. Passed to [docker build push action context input](https://github.com/docker/build-push-action#inputs). It should be relative to the root of the commit that triggered the actionno./
docker-filepath to docker file relative to docker-context. Passed to [docker build push action file input](https://github.com/docker/build-push-action#inputs)noDockerfile
docker-build-contextsList of additional build contextsno
checkoutwhether to automatically checkout the current repositorynotrue

no outputs