delivops/ECR Build and Push

Builds and pushes Docker images to Amazon ECR

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
image_nameName of the Docker image to build and pushyes
tagOne or more tags to apply to the Docker image, separated by commayes
pathPath to the Dockerfile contextno.
build_argsComma-separated list of build arguments to pass to the Docker buildno""
pushWhether to push the Docker image to ECRnotrue
force_ecr_loginWhether to force a new login to ECRnofalse
docker_layer_cacheWhether to use docker cachingnotrue
enable_buildcacheEnable using an ECR registry build cachenofalse
buildcache_tag_nameTag to use when storing build cache layersnobuildcache
targetSets the target stage to buildno""
dockerfile_pathPath to the DockerfilenoDockerfile
platformsList of target platforms for buildnolinux/amd64
aws_account_idThe AWS account IDyes
aws_regionThe AWS regionyes
aws_roleThe AWS IAM role to assumenogithub_services
pullAlways attempt to pull referenced images to avoid stale basesnotrue
no_cacheDo not use cache when building the imagenofalse
dockerhub_usernameDockerHub username for pulling base imagesno""
dockerhub_access_tokenDockerHub access token for pulling base imagesno""
scan_on_pushEnable vulnerability scanning enforcement after image pushnofalse
scan_severity_thresholdFail build if vulnerabilities at or above this severity are found (CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL)noCRITICAL
scan_timeoutMaximum time in seconds to wait for scan resultsno300
scan_fail_on_timeoutWhether to fail the action if scan times outnotrue

no outputs