jppol-idp/deploy-ecr

Publishes a docker image to ECR and creating the repository if non-existing.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Jan 28, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: jppol-idp/build-and-push-ecr@9eb89eaef8562db887a975abb6aa188d086aaa14 # v2

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

namedescriptionrequireddefault
image_nameThe image name. Will be appended to namespace.yes
image_tagA tag value to setyes
docker_folderWhen building the action will step into this folder and run a docker build command.no.
namespaceThe namespace or prefix to use. Final image name will be a composite of this and the image name joined by a slash.yes
ecr_account_idThe account id to push to. For internal use at jppol default value should be used.no354918371398
aws_regionFor internal use at jppol default value should be used.noeu-west-1
run_buildSet to false if you want to run the docker build your self. In this case the image must be tagged correctly as ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com/NAMESPACE/IMAGE_NAME:IMAGE_TAGtrue
run_pushIf set to false, nothing is pushed. If you need to tag your image correct given inputs, you can run this action but both run_build and run_push set to false and use the fully_qualified_name output to tag before using action again.true
namedescription
fully_qualified_name