Move secret cleanup to cleanup area
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-09-25 20:40:51 +02:00
parent 6aa9183e19
commit 2be8874db1
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,6 @@ run_stack_wait() {
run_purge() {
echo "--- start purge ---"
docker -H "$DOCKER_HOST" stack rm "$PLUGIN_STACK"
docker -H "$DOCKER_HOST" secret ls -q | docker -H "$DOCKER_HOST" secret rm
echo "--- end purge ---"
}
@ -72,6 +71,7 @@ run_cleanup() {
# See https://github.com/moby/moby/issues/30942#issuecomment-540699206
until [ -z "$(docker stack ps "$PLUGIN_STACK" -q)" ]; do sleep 1; done
docker -H "$DOCKER_HOST" system prune --all --volumes --force
docker -H "$DOCKER_HOST" secret ls -q | docker -H "$DOCKER_HOST" secret rm
echo "--- end cleanup ---"
}