Delete branch images on merge

Further details

Goals

  • Developers have an easy option for removing branch images that are not useful to keep around.

Proposal

  • Add a check box to the MR screen that will allow users to "delete all branch images upon merge"

Examples

  • MR screen to add 'Delete branch images when merge requested is accepted` Screen_Shot_2019-10-10_at_4.54.06_PM

Permissions and Security

  • Developers and above can choose to remove images on merge

Documentation

Testing

What does success look like, and how can we measure that?

  • Success looks like we can help our customers and ourselves lower the cost of storage for the Container Registry.
  • We can measure this for gitlab.com (once we can run garbage collection) by looking at the overall cost of storage.
  • We can also measure the total number of images over time and we should see a significant decrease in the that number and then see it level off over time.
Edited by Tim Rizzi