Skip to content
Snippets Groups Projects
Commit 8d5f2d01 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: don't clean own pipeline images in clean_pipeline

parent b4e024d4
No related branches found
No related tags found
1 merge request!855fix: don't clean own pipeline images in clean_pipeline
...@@ -670,6 +670,7 @@ clean_pipeline: ...@@ -670,6 +670,7 @@ clean_pipeline:
--filter=reference=${registry}/*:pipeline-* --filter=reference=${registry}/*:pipeline-*
--format "{{.ID}} {{.Repository}} {{.Tag}}" ; --format "{{.ID}} {{.Repository}} {{.Tag}}" ;
done done
| grep -v ${CI_PIPELINE_ID}
| sed -n -E 's/pipeline-([0-9]+)(-.*){0,1}$/& \1/p' | sed -n -E 's/pipeline-([0-9]+)(-.*){0,1}$/& \1/p'
| while read id repository tag pipeline_id ; do | while read id repository tag pipeline_id ; do
status=$(curl --silent -L status=$(curl --silent -L
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment