Skip to content

Closes #4 with new param LAST_VALID_TAGS_COUNT#5

Open
ryttuo wants to merge 1 commit into
wshihadeh:masterfrom
ryttuo:clear-by-last-n-tags
Open

Closes #4 with new param LAST_VALID_TAGS_COUNT#5
ryttuo wants to merge 1 commit into
wshihadeh:masterfrom
ryttuo:clear-by-last-n-tags

Conversation

@ryttuo
Copy link
Copy Markdown

@ryttuo ryttuo commented Mar 15, 2022

Added LAST_VALID_TAGS_COUNT param so you can set last N tag version to keep into the registry, for instance if the registry has:

https://:5000/:1.0.10
https://:5000/:1.0.9
https://:5000/:1.0.8
https://:5000/:1.0.7
https://:5000/:1.0.6

If LAST_VALID_TAGS_COUNT = 3 after run script the result should be:

https://:5000/:1.0.10
https://:5000/:1.0.9
https://:5000/:1.0.8

Other tags without numbers keep the same approach removed after MAX_AGE_SECONDS

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.

1 participant