Debug PLUGIN_NETWORKS
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2020-09-27 21:38:39 +02:00
parent 9ebb6d0995
commit 0376ea7376
1 changed files with 3 additions and 0 deletions

View File

@ -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