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:
In the example above, both tag names are
latest and that is the only parameter that one can set a cleanup policy based on.
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.
- 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?
Measure the number of policies using tag name only vs. the full path.