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"
|
REMOTE_DOCKER_HOST="ssh://$PLUGIN_USER@$PLUGIN_HOST:$PLUGIN_PORT"
|
||||||
|
|
||||||
create_networks() {
|
create_networks() {
|
||||||
|
echo "--- start create_networks ---"
|
||||||
for NETWORK in $PLUGIN_NETWORKS; do
|
for NETWORK in $PLUGIN_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
|
||||||
|
echo "--- end create_networks ---"
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_secrets() {
|
generate_secrets() {
|
||||||
|
@ -85,6 +87,7 @@ run_plugin() {
|
||||||
load_deploy_key
|
load_deploy_key
|
||||||
output_versions
|
output_versions
|
||||||
|
|
||||||
|
echo "$PLUGIN_NETWORKS"
|
||||||
if [ -n "$PLUGIN_NETWORKS" ]; then
|
if [ -n "$PLUGIN_NETWORKS" ]; then
|
||||||
create_networks
|
create_networks
|
||||||
fi
|
fi
|
||||||
|
|
Reference in New Issue