Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,331
    • Merge requests 1,331
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #281071
Closed
Open
Issue created Nov 11, 2020 by Mitar@mitarContributor

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