ci(buildkite): clean /tmp at the conclusion of each job (#3268)

* ci(buildkite): clean /tmp at the conclusion of each job

* fix: cleanup with sudo to remove 000 perm files
pull/3264/head
Amir Zarrinkafsh 2022-04-29 12:23:51 +10:00 committed by GitHub
parent c103329e14
commit 4d3efb0da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -6,4 +6,6 @@ if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] && \
[[ "${BUILDKITE_AGENT_META_DATA_CLEANBUILD}" != "false" ]]; then
echo "--- :docker: Clean environment"
docker system prune -af --volumes
fi
fi
sudo find /tmp/ ! -wholename "/tmp/" ! -name "buildkite*" -type d,f -exec rm -rf {} +