Split PLUGIN_NETWORKS
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
3wc 2020-09-27 21:43:39 +02:00
parent 0376ea7376
commit 19df46692f

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