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
|
# 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"
|
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() {
|
run_plugin() {
|
||||||
|
@ -91,7 +91,6 @@ run_plugin() {
|
||||||
|
|
||||||
if [ "$PLUGIN_PURGE" == "true" ]; then
|
if [ "$PLUGIN_PURGE" == "true" ]; then
|
||||||
run_purge
|
run_purge
|
||||||
run_cleanup
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "--- end ssh-stack-deploy ---"
|
echo "--- end ssh-stack-deploy ---"
|
||||||
|
|
Loading…
Reference in New Issue