Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image-copy-ecr: support immutable tags #91

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

imjasonh
Copy link
Member

This adds a TF variable -var=immutable_tags=true that configures ECR repos to enforce immutable tags, and configures the copy function to append the first six digits of the image digest to any tag it pushes, so that tags can be immutable.

When immutable tags are enabled, pushing to cgr.dev/imjasonh.dev/random:foo mirrors an image to ECR at <account>.dkr.ecr.<region>.amazonaws.com/<dst-repo>/random:foo-abcdef.

Signed-off-by: Jason Hall <jason@chainguard.dev>
@imjasonh imjasonh requested a review from mattmoor August 24, 2023 20:41
@strongjz strongjz merged commit e626b51 into chainguard-dev:main Aug 25, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants