Skip to content

AWS ECR Retag

Actions
Retag a Docker image in ECR without using the Docker CLI
v1
Latest
Star (0)

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

AWS ECR Retag is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Retag a Docker image in ECR without using the Docker CLI
v1
Latest

AWS ECR Retag is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.