gitlab-registry-cleaner
gitlab-registry-cleaner copied to clipboard
Solution without the additional Docker image.
basically make the delete_image a funtion:
function delete_image(){
. . .
}
and the gitlab yaml have something like:
. . .
before_script:
- source $CI_PROJECT_DIR/delete_image.sh
script:
- delete_image registry.gitlab.mycompany.com/path/to/image:$CI_COMMIT_REF_NAME
. . .