Add keyscan, use only version checker
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d04583f6d2
commit
7d18025ae5
@ -3,15 +3,16 @@
|
|||||||
|
|
||||||
load_deploy_key() {
|
load_deploy_key() {
|
||||||
eval `ssh-agent`
|
eval `ssh-agent`
|
||||||
|
ssh-keyscan "$PLUGIN_HOST" > "$HOME/.ssh/known_hosts"
|
||||||
echo "$PLUGIN_DEPLOY_KEY" | ssh-add -
|
echo "$PLUGIN_DEPLOY_KEY" | ssh-add -
|
||||||
}
|
}
|
||||||
|
|
||||||
run_stack_deploy() {
|
run_stack_deploy() {
|
||||||
PLUGIN_COMPOSE=${PLUGIN_COMPOSE:-compose.yml}
|
PLUGIN_COMPOSE=${PLUGIN_COMPOSE:-compose.yml}
|
||||||
|
|
||||||
echo "--- start docker:dind info ---"
|
echo "--- start docker info ---"
|
||||||
docker info
|
docker version
|
||||||
echo "--- end docker:dind info ---"
|
echo "--- end docker info ---"
|
||||||
|
|
||||||
docker -H "$PLUGIN_HOST" stack deploy -c "$PLUGIN_COMPOSE" "$PLUGIN_STACK"
|
docker -H "$PLUGIN_HOST" stack deploy -c "$PLUGIN_COMPOSE" "$PLUGIN_STACK"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user