citizensadvice/Build and push to a private ECR
Build and push a Docker image to a private ERC, written for CA repositories.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| role_arn | A role to assume with permission to push to the Private ECR repository | no | arn:aws:iam::979633842206:role/PrivateECRPush |
| dockerfile_context | The context of the Dockerfile. Defaults to root of project. | no | . |
| dockerfile | The name of the dockerfile to build. Defaults to Dockerfile | no | Dockerfile |
| build-args | List of build-time variables | no | — |
| repository_name | The name of the ECR repository. Will be used as the name of the Docker image | yes | — |
| auth_token | A token to pull the repository. Usually GITHUB_TOKEN | yes | — |
| multiarch_build | Build a `linux/arm64` image as well as `linux/amd64`. Defaults to disabled | no | disabled |
| push_after_build | Push the image after building it. Useful if you need to run tests on the image before you push it. Defaults to `true` | no | true |
| prod_image | Tag the image as a production image. Adds `latest tag` on push. Defaults to false | no | false |
| tags_override | Override the default tags. This will replace ALL of the default tags | no | "" |
Outputs
| name | description |
|---|---|
| image_id | ID of the image |
| image_digest | Digest of the image |
| image_tags | A CSV list of the image tags |