Skip to content

Retag a Docker image in ECR without using the Docker CLI

License

Notifications You must be signed in to change notification settings

someimportantcompany/github-actions-aws-ecr-retag

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

AWS ECR Retag

GitHub CICD Coverage

Retag a Docker image in ECR without using the Docker CLI, useful if you want to set a tag as "latest" (or similar) but want to avoid pulling, tagging & pushing with the docker CLI.

Usage

# Required, to set AWS credentials for ECR
- uses: aws-actions/configure-aws-credentials@v1
# Copy image tag from one to another
- uses: someimportantcompany/github-actions-aws-ecr-retag@v1
  with:
    repository: someimportantcompany/some-important-project
    src-tag: main-6b5ee624
    dest-tag: main-latest
  • You must configure the AWS environment with aws-actions/configure-aws-credentials or equivalent.

Inputs

Key Description
repository Required. The ECR repository name.
src-tag Required. The ECR image tag to copy from.
dest-tag Required. The ECR image tag to copy to.
delete-before Optionally set to true to delete the dest-tag.

Notes

About

Retag a Docker image in ECR without using the Docker CLI

Resources

License

Stars

Watchers

Forks