[Buildkite] Control clean builds with agent metadata (#840)

This is to optimise build times at the sacrifice of disk space/clean up tasks.
This commit is contained in:
Amir Zarrinkafsh 2020-04-09 14:46:04 +10:00 committed by GitHub
parent 49ac65eb41
commit 3de1827b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,5 +2,7 @@
set +u
if [[ $BUILDKITE_AGENT_META_DATA_CLEANBUILD != "false" ]]; then
echo "--- :docker: Clean environment"
docker system prune -af --volumes
fi