Wait before cleaning and add TODO
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-09-25 20:35:27 +02:00
parent cd8ef52860
commit d9b0724a19
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 2 deletions

View File

@ -64,13 +64,14 @@ run_stack_wait() {
run_purge() {
echo "--- start purge ---"
docker -H "$DOCKER_HOST" stack rm "$PLUGIN_STACK"
# See https://github.com/moby/moby/issues/30942#issuecomment-540699206
until [ -z "$(docker stack ps "$PLUGIN_STACK" -q)" ]; do sleep 1; done
# TODO: also cleanup secrets once that is sorted
echo "--- end purge ---"
}
run_cleanup() {
echo "--- start 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
echo "--- end cleanup ---"
}