-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Feature Request] Keep last n tagged images with a specific tagname #18
Comments
Agreed. Now that some CI tests are in place I was planning to add a by date option. It definitely makes sense on the --tags mode. Are you wanting it on the --keep-n-tagged option also? |
I've been thinking of using these additional scope filters and options: delete-untagged - default
delete-tags/tags
keep-n-tagged
keep-n-untagged
exclude-tags
# scope filters
and-older-than
and-downloads-less-than (default 5000 for public repo)
and-contains-labels (docker image labels - need to figure out syntax for matching
# additional actions
delete-partial-manifests (default false)
delete-ghost-manfests (default true)
delete-ghost-referrers-tags (default true) |
I've implemented a older-than option in 2b3cd04, it takes precedent and can be applied to all the delete and keep options. It effectively only include in scope those images that are "older than" that value. |
I've released v1.0.8/v1 ff99a6e with this feature, so closing this issue. Thanks for your feedback/suggestion. |
It would be a nice feature where we can configure the action in such a way, that it deletes all tags according to the tag wildcard and are older than x amount of days.
The text was updated successfully, but these errors were encountered: