Skip to content
Snippets Groups Projects

fix: don't clean own pipeline images in clean_pipeline

Merged Wouter Deconinck requested to merge clean-pipeline-not-self into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -670,6 +670,7 @@ clean_pipeline:
--filter=reference=${registry}/*:pipeline-*
--format "{{.ID}} {{.Repository}} {{.Tag}}" ;
done
| grep -v ${CI_PIPELINE_ID}
| sed -n -E 's/pipeline-([0-9]+)(-.*){0,1}$/& \1/p'
| while read id repository tag pipeline_id ; do
status=$(curl --silent -L
Loading