From 79f89816f727ab6107fa0365faccef8739065965 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Wed, 11 May 2022 11:38:57 +0200 Subject: [PATCH] setup curl to fail on error --- .gitlab/ci/cleanup_tags.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/ci/cleanup_tags.yml b/.gitlab/ci/cleanup_tags.yml index 4e18e2975..c58e32d89 100644 --- a/.gitlab/ci/cleanup_tags.yml +++ b/.gitlab/ci/cleanup_tags.yml @@ -7,7 +7,7 @@ script: | # Delete all composer image tags for this branch as we don't need them anymore echo "PRIVATE-TOKEN: $CI_JOB_TOKEN" - curl -X DELETE -k -H 'Content-Type: application/json' \ + curl -X DELETE -k -H 'Content-Type: application/json' --fail \ -H "JOB-TOKEN: ${CI_JOB_TOKEN}" \ -i "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/registry/repositories/${FPM_IMAGE_REPOSITORY_ID}/tags" \ --data "{\"name_regex_delete\": \"$CI_COMMIT_REF_SLUG-composer-.*\"}" -- GitLab