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

fix: avoid boolean shell contraction

parent 4729e26f
Branches
No related tags found
No related merge requests found
...@@ -570,9 +570,9 @@ clean_pipeline: ...@@ -570,9 +570,9 @@ clean_pipeline:
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}"
| jq -r ".status") ; | jq -r ".status") ;
echo "Image $repository:$tag is ${status:-undetermined} (pipeline ${pipeline_id})." ; echo "Image $repository:$tag is ${status:-undetermined} (pipeline ${pipeline_id})." ;
[ "$status" == "success" ] && echo docker rmi $repository:$tag ; if [ "$status" == "success" ] ; then echo docker rmi $repository:$tag ; fi ;
[ "$status" == "failed" ] && echo docker rmi $repository:$tag ; if [ "$status" == "failed" ] ; then echo docker rmi $repository:$tag ; fi ;
[ "$status" == "canceled" ] && echo docker rmi $repository:$tag ; if [ "$status" == "canceled" ] ; then echo docker rmi $repository:$tag ; fi ;
done done
- docker system prune --filter until=24h --force - docker system prune --filter until=24h --force
- docker images - docker images
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment