mirror of https://github.com/authelia/authelia.git
12 lines
406 B
Bash
Executable File
12 lines
406 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set +u
|
|
|
|
if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] && \
|
|
[[ "${BUILDKITE_AGENT_META_DATA_CLEANBUILD}" != "false" ]]; then
|
|
echo "--- :docker: Clean environment"
|
|
docker system prune -af --volumes
|
|
fi
|
|
|
|
sudo find /tmp/ ! -wholename "/tmp/" ! -wholename "/tmp/buildkite-agent-hook-wrapper*" ! -name "buildkite*" ! -name "job-env-*" -type d,f -exec rm -rf {} +
|