From 3dffa60a8c163802689cabbae3f6cddc7d2ecbce Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Sun, 27 Aug 2023 18:59:11 +0000 Subject: [PATCH] fix: avoid boolean shell contraction --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0a4d7f8d..87bfe56e2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -570,9 +570,9 @@ clean_pipeline: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}" | jq -r ".status") ; echo "Image $repository:$tag is ${status:-undetermined} (pipeline ${pipeline_id})." ; - [ "$status" == "success" ] && echo docker rmi $repository:$tag ; - [ "$status" == "failed" ] && echo docker rmi $repository:$tag ; - [ "$status" == "canceled" ] && echo docker rmi $repository:$tag ; + if [ "$status" == "success" ] ; then echo docker rmi $repository:$tag ; fi ; + if [ "$status" == "failed" ] ; then echo docker rmi $repository:$tag ; fi ; + if [ "$status" == "canceled" ] ; then echo docker rmi $repository:$tag ; fi ; done - docker system prune --filter until=24h --force - docker images -- GitLab