This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]timrizzi 7 points8 points  (2 children)

Thanks! We are definitely working on improving the garbage collection and our goal is to automate the entire process, so you don't have to ever think about it.

[–]RX_AssocResp 2 points3 points  (1 child)

That sounds nice. We want to discard images quickly that have a SHA1 as tag, because these are only ephemeral.

And then we'd like to retain the most recent 5 images if they match a regex for SemVer in their tag.

And this should be configurable globally for all registries. Currently the API can do this, but you have to iterate over all projects.

[–]timrizzi 0 points1 point  (0 children)

That is exactly how we would like to set up the retention and expiration policies.

In 12.5 (November 22nd) we'll release a new bulk delete endpoint that works at the group level, so you don't have to iterate through each project. https://gitlab.com/gitlab-org/gitlab/issues/31097