catalystcommunity/Build and Push Image to ECR
Builds and pushs an image to an AWS ECR repository
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Aug 5, 2024
- License
- Apache 2.0
Pinned Snippet
uses: catalystcommunity/action-build-push-image-ecr@776cb8921fbe88b33f1028797913678217bc21a4 # v1.3.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| ecr-repository | Name of ECR repository to push images to. Defaults to the Git repository's name. | no | ${{ github.repository }} |
| aws-access-key-id | AWS secret key ID. Required. | yes | — |
| role-skip-session-tagging | Skip AWS session tagging for the role assumption step | — | false |
| aws-secret-access-key | AWS secret access key. Required. | yes | — |
| aws-region | AWS region. Required. | yes | — |
| role-to-assume | AWS IAM role to assume. | no | — |
| role-external-id | AWS IAM role external id | no | — |
| role-duration-seconds | AWS IAM role assumption duration seconds | no | 900 |
| create-missing-repositories | Creates the ECR repository if it does not exist | no | true |
| role-session-name | AWS IAM role assumption session name | no | action-build-push-image-ecr |
| extra-account-access | List of AWS accounts to add access for | no | "" |
| tag-versions | git tags to push, comma separated string such as `latest,v1.0.0` | no | latest,${{ github.event.release.tag_name }} |
| build-secrets | docker 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 details | no | "" |
| docker-context | docker 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 action | no | ./ |
| docker-file | path to docker file relative to docker-context. Passed to [docker build push action file input](https://github.com/docker/build-push-action#inputs) | no | Dockerfile |
| docker-build-contexts | List of additional build contexts | no | — |
| checkout | whether to automatically checkout the current repository | no | true |
Outputs
no outputs