delivops/ECR Build and Push
Builds and pushes Docker images to Amazon ECR
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| image_name | Name of the Docker image to build and push | yes | — |
| tag | One or more tags to apply to the Docker image, separated by comma | yes | — |
| path | Path to the Dockerfile context | no | . |
| build_args | Comma-separated list of build arguments to pass to the Docker build | no | "" |
| push | Whether to push the Docker image to ECR | no | true |
| force_ecr_login | Whether to force a new login to ECR | no | false |
| docker_layer_cache | Whether to use docker caching | no | true |
| enable_buildcache | Enable using an ECR registry build cache | no | false |
| buildcache_tag_name | Tag to use when storing build cache layers | no | buildcache |
| target | Sets the target stage to build | no | "" |
| dockerfile_path | Path to the Dockerfile | no | Dockerfile |
| platforms | List of target platforms for build | no | linux/amd64 |
| aws_account_id | The AWS account ID | yes | — |
| aws_region | The AWS region | yes | — |
| aws_role | The AWS IAM role to assume | no | github_services |
| pull | Always attempt to pull referenced images to avoid stale bases | no | true |
| no_cache | Do not use cache when building the image | no | false |
| dockerhub_username | DockerHub username for pulling base images | no | "" |
| dockerhub_access_token | DockerHub access token for pulling base images | no | "" |
| scan_on_push | Enable vulnerability scanning enforcement after image push | no | false |
| scan_severity_threshold | Fail build if vulnerabilities at or above this severity are found (CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL) | no | CRITICAL |
| scan_timeout | Maximum time in seconds to wait for scan results | no | 300 |
| scan_fail_on_timeout | Whether to fail the action if scan times out | no | true |
Outputs
no outputs