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.
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.
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/*"
}
]
}