Cleanup policy for tags to support dynamic names
Problem to solve
GitLab's cleanup policies only allow you to remove images based on tag name. If I have 2 tags:
mitar/example/branch/<branch name>:latest
mitar/example/pipeline/<pipeline id>:latest
In the example above, both tag names are latest
and that is the only parameter that one can set a cleanup policy based on.
Proposal
Allow the user to select if the cleanup policy should match based on tag name only or the full path. This will work with both the API and the user interface. The default selection is tag name.
Questions
- If the user previously had cleanup policies set based on tag name, and changes to full path, do we need to warn them in anyway?
Metrics
Measure the number of policies using tag name only vs. the full path.
Edited by Katie Macoy