I have a jenkins multi branch project, that builds on every commit and pushes the image to our private registry:
docker-reg:5000/<project>/<branch>:latest
docker-reg:5000/<project>/<branch>:<build-server>-<build-number>
How can I delete the labels in the docker registry in order to let the garbage collector kick in upon:
- build gets orphaned after some time
- remove
<project>/<branch>:<build-server>-<build-number
- remove
- branch gets merged and jenkins sub project gets automatically deleted
- remove
<project>/<branch>:latest
- remove