Skip to content
Snippets Groups Projects

feat: clean old pipeline tags

Merged Wouter Deconinck requested to merge wdconinc-master-patch-37326 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -564,7 +564,7 @@ clean_pipeline:
@@ -564,7 +564,7 @@ clean_pipeline:
--filter=reference=${registry}/*:pipeline-*
--filter=reference=${registry}/*:pipeline-*
--format "{{.ID}} {{.Repository}} {{.Tag}}" ;
--format "{{.ID}} {{.Repository}} {{.Tag}}" ;
done
done
| sed -n -E 's/pipeline-([0-9]+)(-nightly|-default){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
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}"
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}"
Loading