Remove container images from review apps from the container registry
Problem to solve
When using AutoDevops and review apps, a container is build for each feature branch. After the feature branch is merged and removed the container registry still has the containers from this feature branch. Which will result eventually in an overloaded repository with containers.
Goal here is to keep the container registry clean after removal of the feature branch.
- On a merge request when
Remove source branchis checked also remove the related container images in the container registry
- On a merge request add a extra option to check, whether to remove the container images from the registry or not
What does success look like, and how can we measure that?
You can measure the success by checking the container registry and see if the images are removed.