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

fix: activate docker rmi

parent 3dffa60a
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})." ;
if [ "$status" == "success" ] ; then echo docker rmi $repository:$tag ; fi ; if [ "$status" == "success" ] ; then docker rmi $repository:$tag ; fi ;
if [ "$status" == "failed" ] ; then echo docker rmi $repository:$tag ; fi ; if [ "$status" == "failed" ] ; then docker rmi $repository:$tag ; fi ;
if [ "$status" == "canceled" ] ; then echo docker rmi $repository:$tag ; fi ; if [ "$status" == "canceled" ] ; then 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