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

This commit is contained in:
3wc 2020-09-27 21:43:39 +02:00
parent 0376ea7376
commit 19df46692f
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ REMOTE_DOCKER_HOST="ssh://$PLUGIN_USER@$PLUGIN_HOST:$PLUGIN_PORT"
create_networks() {
echo "--- start create_networks ---"
for NETWORK in $PLUGIN_NETWORKS; do
IFS=',' read -ra NETWORKS <<< "$PLUGIN_NETWORKS"
for NETWORK in "${NETWORKS[@]}"; do
docker -H "$REMOTE_DOCKER_HOST" \
network create --driver=overlay "$NETWORK" --scope swarm || true
done