Skip to content

Commit

Permalink
[Buildkite] Control clean builds with agent metadata (#840)
Browse files Browse the repository at this point in the history
This is to optimise build times at the sacrifice of disk space/clean up tasks.
  • Loading branch information
nightah committed Apr 9, 2020
1 parent 49ac65e commit 3de1827
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .buildkite/hooks/pre-exit
Expand Up @@ -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

0 comments on commit 3de1827

Please sign in to comment.