cdk-ecr-deployment icon indicating copy to clipboard operation
cdk-ecr-deployment copied to clipboard

Deploy a image with multiple tags

Open johnny-kc-wu opened this issue 3 years ago • 1 comments

Could we deploy a image with multiple tags(e.g. my-app:latest & my-app:20220801) into an ECR repo? Thanks!

johnny-kc-wu avatar Aug 02 '22 11:08 johnny-kc-wu

You will have to create multiple deployments to push to different tags. With ECR repos, tags are really but is a unique thing, it's not so much adding a new tag to an existing thing, but pushing the same thing multiple times. Of course the second push should be much faster since the registry will be able to deduplicate the layers based on the hash.

Architecturally this package is currently implement as a simple copy instruction. To save on the second push, we'd might have to change to a pull and push to multiple targets methods.

mrgrain avatar Oct 16 '24 10:10 mrgrain