Fix crash on missing run_cleanup
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6f125529b1
commit
ed773e37f0
|
@ -74,7 +74,7 @@ run_purge() {
|
|||
|
||||
# try and remove all secrets; Docker will leave ones which are in use
|
||||
docker -H "$DOCKER_HOST" secret ls --format '{{ .Name }}' | xargs -i sh -c "echo {}; docker -H \"$DOCKER_HOST\" secret rm {} || true"
|
||||
echo "--- end cleanup ---"
|
||||
echo "--- end purge ---"
|
||||
}
|
||||
|
||||
run_plugin() {
|
||||
|
@ -91,7 +91,6 @@ run_plugin() {
|
|||
|
||||
if [ "$PLUGIN_PURGE" == "true" ]; then
|
||||
run_purge
|
||||
run_cleanup
|
||||
fi
|
||||
|
||||
echo "--- end ssh-stack-deploy ---"
|
||||
|
|
Reference in New Issue