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

fix: match pipeline-<index>-<any>-<suffix>

parent e77c83c1
No related branches found
No related tags found
1 merge request!712feat: clean old pipeline tags
......@@ -564,7 +564,7 @@ clean_pipeline:
--filter=reference=${registry}/*:pipeline-*
--format "{{.ID}} {{.Repository}} {{.Tag}}" ;
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
status=$(curl --silent -L
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment