You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: clean up untagged ECR images after overwrite_only_existing mirror (#245)
* Delete previous ECR digest after overwrite_only_existing push
When overwriting an existing tag, ECR leaves the old manifest untagged.
Remove it with batch-delete-image so hourly mirrors do not accumulate storage.
* refactor: simplify mirror_to_ecr bash decision logic
Collapse IMAGE_EXISTS/SHOULD_MIRROR into direct conditions without
changing mirror, skip, fail, or digest-delete behavior.
* fix: skip ECR digest deletion when mirror content is unchanged
After push, compare the new image digest with the pre-push digest and
only batch-delete the old digest when they differ, avoiding removal of
the image that still carries the tag.
* fix: delete all untagged ECR images after overwrite
Replace digest-targeted deletion with list-images tagStatus=UNTAGGED
cleanup so shared-tag digests are never removed unintentionally.
* fix: quote ECR describe-images variables in mirror_to_ecr
Copy file name to clipboardExpand all lines: src/jobs/mirror_to_ecr.yml
+29-21Lines changed: 29 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ parameters:
20
20
type: boolean
21
21
default: false
22
22
overwrite_only_existing:
23
-
description: If true then overwrite the image only when the target tag already exists in ECR. The job fails if the tag is missing.
23
+
description: If true then overwrite the image only when the target tag already exists in ECR. The job fails if the tag is missing. After overwrite, untagged images in the repository are deleted from ECR.
0 commit comments