Debug PLUGIN_NETWORKS
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9ebb6d0995
commit
0376ea7376
|
@ -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
|
||||
|
|
Reference in New Issue