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
This commit is contained in:
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

View File

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