mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
ci(buildkite): prevent pre-exit hook on setup steps (#3076)
* ci(buildkite): prevent pre-exit hook on setup steps Occasionally due to node issues the pre-exit hook for docker image cleanups can fail, causing the otherwise successful job to bail out. This change ignores the cleanup on setup steps.
This commit is contained in:
parent
160a087af5
commit
8ba586e955
|
@ -2,7 +2,8 @@
|
|||
|
||||
set +u
|
||||
|
||||
if [[ "${BUILDKITE_AGENT_META_DATA_CLEANBUILD}" != "false" ]]; then
|
||||
if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] && \
|
||||
[[ "${BUILDKITE_AGENT_META_DATA_CLEANBUILD}" != "false" ]]; then
|
||||
echo "--- :docker: Clean environment"
|
||||
docker system prune -af --volumes
|
||||
fi
|
Loading…
Reference in New Issue
Block a user