Skip to content
GitLab
Next
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #281071

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.

Screen_Shot_2022-06-14_at_14.46.45

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 Jun 14, 2022 by Katie Macoy
Assignee
Assign to
Time tracking