gitlab-registry-cleaner
gitlab-registry-cleaner copied to clipboard
A simple Docker image to be used in Gitlab CI to easily delete images in the Gitlab registry
Is there any reason why your script accept `user:password`, but doesn't accept token directly? Is it expiring or something? If it was made just for comfort, please do extra step...
Just in case this script got updates, it would be great to have a version tag instead of `latest` only avoiding us to get the image updated without knowing it.
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:...