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
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !712. Comments created here will be created in the context of that merge request.
...@@ -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.
Finish editing this message first!
Please register or to comment