Skip to content

Tags an AWS ECR Docker image without pulling it

License

Notifications You must be signed in to change notification settings

Polymathian/aws-ecr-tag-action

Repository files navigation

Docker Tag for AWS ECR action

Uses the AWS ECR API to tag an already-pushed image without pulling it to the actions worker.

This is a third-party action and not maintained by Amazon.

Inputs

  • registry-id Optional. The AWS account ID associated with the registry that contains the repository and image. If you do not specify a registry, the default registry is assumed.
  • repository-name The name of the repository in which to get and put the image.
  • source-image-tag The existing tag to find the image.
  • target-image-tag The new tag to add to the image.

IAM

You should provide credentials using the Configure AWS Credentials action. Alternatively you can directly provide environment variables to this action.

This action requires permission to use BatchGetImage and PutImage APIs on AWS ECR.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ecr:BatchGetImage",
                "ecr:PutImage"
            ],
            "Resource": "arn:aws:ecr:*:<account id>:repository/*"
        }
    ]
}

About

Tags an AWS ECR Docker image without pulling it

Resources

License

Stars

Watchers

Forks

Packages

No packages published