Whitelist the metrics-solana-com buildkite agent from docker container cleanup

This commit is contained in:
Michael Vines 2019-02-07 08:18:48 -08:00
parent d1945c29d7
commit 8136d52c0b
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ export CI_BUILD_START
#
(
containers=$(docker ps -q)
if [[ -n $containers ]]; then
echo "Killing stale docker containers"
if [[ $(hostname) != metrics-solana-com && -n $containers ]]; then
echo "+++ Killing stale docker containers"
docker ps
# shellcheck disable=SC2086 # Don't want to double quote $containers