[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
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
1 changed files with 4 additions and 2 deletions

View File

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