gitlab-registry-cleaner icon indicating copy to clipboard operation
gitlab-registry-cleaner copied to clipboard

Solution without the additional Docker image.

Open khalilgharbaoui opened this issue 5 years ago • 0 comments

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
. . . 

khalilgharbaoui avatar Sep 11 '20 10:09 khalilgharbaoui