More debug logs, host in the right place
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9655b55dd7
commit
d04583f6d2
13
plugin.sh
13
plugin.sh
|
@ -9,17 +9,18 @@ load_deploy_key() {
|
|||
run_stack_deploy() {
|
||||
PLUGIN_COMPOSE=${PLUGIN_COMPOSE:-compose.yml}
|
||||
|
||||
docker stack deploy \
|
||||
-c "$PLUGIN_COMPOSE" \
|
||||
-H "$PLUGIN_HOST" \
|
||||
"$PLUGIN_STACK"
|
||||
echo "--- start docker:dind info ---"
|
||||
docker info
|
||||
echo "--- end docker:dind info ---"
|
||||
|
||||
docker -H "$PLUGIN_HOST" stack deploy -c "$PLUGIN_COMPOSE" "$PLUGIN_STACK"
|
||||
}
|
||||
|
||||
run_plugin() {
|
||||
echo "--- Starting deployment ---"
|
||||
echo "--- start deployment ---"
|
||||
load_deploy_key
|
||||
run_stack_deploy
|
||||
echo "--- Deployment successful ---"
|
||||
echo "--- end deployment ---"
|
||||
}
|
||||
|
||||
run_plugin
|
||||
|
|
Loading…
Reference in New Issue