mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[Buildkite] Clean Docker environment on exit (#734)
This commit is contained in:
parent
298d56dea3
commit
7eddf07155
|
@ -5,7 +5,7 @@ set +u
|
|||
if [[ $BUILDKITE_LABEL =~ ":selenium:" ]] || [[ $BUILDKITE_LABEL =~ ":docker: Build Image" ]]; then
|
||||
CONTAINERS=$(docker ps -a -q)
|
||||
if [[ ${CONTAINERS} != "" ]]; then
|
||||
echo "--- :docker: Clean environment"
|
||||
echo "--- :docker: Remove lingering containers"
|
||||
docker rm -f ${CONTAINERS}
|
||||
fi
|
||||
fi
|
||||
|
|
6
.buildkite/hooks/pre-exit
Executable file
6
.buildkite/hooks/pre-exit
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set +u
|
||||
|
||||
echo "--- :docker: Clean environment"
|
||||
docker system prune -af --volumes
|
Loading…
Reference in New Issue
Block a user