Split PLUGIN_NETWORKS
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
0376ea7376
commit
19df46692f
|
@ -12,7 +12,8 @@ REMOTE_DOCKER_HOST="ssh://$PLUGIN_USER@$PLUGIN_HOST:$PLUGIN_PORT"
|
||||||
|
|
||||||
create_networks() {
|
create_networks() {
|
||||||
echo "--- start 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" \
|
docker -H "$REMOTE_DOCKER_HOST" \
|
||||||
network create --driver=overlay "$NETWORK" --scope swarm || true
|
network create --driver=overlay "$NETWORK" --scope swarm || true
|
||||||
done
|
done
|
||||||
|
|
Reference in New Issue