[Buildkite] Control clean builds with agent metadata (#840)
This is to optimise build times at the sacrifice of disk space/clean up tasks.pull/844/head
parent
49ac65eb41
commit
3de1827b21
|
@ -2,5 +2,7 @@
|
||||||
|
|
||||||
set +u
|
set +u
|
||||||
|
|
||||||
echo "--- :docker: Clean environment"
|
if [[ $BUILDKITE_AGENT_META_DATA_CLEANBUILD != "false" ]]; then
|
||||||
docker system prune -af --volumes
|
echo "--- :docker: Clean environment"
|
||||||
|
docker system prune -af --volumes
|
||||||
|
fi
|
Loading…
Reference in New Issue