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() {
|
run_stack_deploy() {
|
||||||
PLUGIN_COMPOSE=${PLUGIN_COMPOSE:-compose.yml}
|
PLUGIN_COMPOSE=${PLUGIN_COMPOSE:-compose.yml}
|
||||||
|
|
||||||
docker stack deploy \
|
echo "--- start docker:dind info ---"
|
||||||
-c "$PLUGIN_COMPOSE" \
|
docker info
|
||||||
-H "$PLUGIN_HOST" \
|
echo "--- end docker:dind info ---"
|
||||||
"$PLUGIN_STACK"
|
|
||||||
|
docker -H "$PLUGIN_HOST" stack deploy -c "$PLUGIN_COMPOSE" "$PLUGIN_STACK"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_plugin() {
|
run_plugin() {
|
||||||
echo "--- Starting deployment ---"
|
echo "--- start deployment ---"
|
||||||
load_deploy_key
|
load_deploy_key
|
||||||
run_stack_deploy
|
run_stack_deploy
|
||||||
echo "--- Deployment successful ---"
|
echo "--- end deployment ---"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_plugin
|
run_plugin
|
||||||
|
|
Loading…
Reference in New Issue