From 0376ea7376b5f52fca66d39ac61687ea439d0d7c Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Sun, 27 Sep 2020 21:38:39 +0200 Subject: [PATCH] Debug PLUGIN_NETWORKS --- plugin.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin.sh b/plugin.sh index e23f291..a06d920 100755 --- a/plugin.sh +++ b/plugin.sh @@ -11,10 +11,12 @@ PLUGIN_USER=${PLUGIN_USER:-drone} REMOTE_DOCKER_HOST="ssh://$PLUGIN_USER@$PLUGIN_HOST:$PLUGIN_PORT" create_networks() { + echo "--- start create_networks ---" for NETWORK in $PLUGIN_NETWORKS; do docker -H "$REMOTE_DOCKER_HOST" \ network create --driver=overlay "$NETWORK" --scope swarm || true done + echo "--- end create_networks ---" } generate_secrets() { @@ -85,6 +87,7 @@ run_plugin() { load_deploy_key output_versions + echo "$PLUGIN_NETWORKS" if [ -n "$PLUGIN_NETWORKS" ]; then create_networks fi