GoogleCloudPlatform / gcr-cleaner

Delete untagged image refs in Google Container Registry or Artifact Registry
Apache License 2.0
805 stars 112 forks source link

Add --tag-filter-exclude flag to exclude images, abstract decision logic to interface #146

Closed shydefoo closed 8 months ago

shydefoo commented 1 year ago

Summary

To delete everything more than 720hours old, except images with tag special-tag

gcr-cleaner-cli -dry-run -repo gcr.io/foo/bar -grace 720h -tag-filter-exclude -tag-filter-any 'special-tag'
shydefoo commented 1 year ago

@sethvargo Requesting review

sethvargo commented 8 months ago

Hi @shydefoo - users should prefer the native Google Artifact Registry functionality instead of gcr-cleaner. We are only fixing bugs and security issues in gcr-cleaner now that there's a native (and free) feature in the Google Cloud product.