Add keyscan, use only version checker
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-09-23 09:21:21 +02:00
parent d04583f6d2
commit 7d18025ae5
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 3 deletions

View File

@ -3,15 +3,16 @@
load_deploy_key() {
eval `ssh-agent`
ssh-keyscan "$PLUGIN_HOST" > "$HOME/.ssh/known_hosts"
echo "$PLUGIN_DEPLOY_KEY" | ssh-add -
}
run_stack_deploy() {
PLUGIN_COMPOSE=${PLUGIN_COMPOSE:-compose.yml}
echo "--- start docker:dind info ---"
docker info
echo "--- end docker:dind info ---"
echo "--- start docker info ---"
docker version
echo "--- end docker info ---"
docker -H "$PLUGIN_HOST" stack deploy -c "$PLUGIN_COMPOSE" "$PLUGIN_STACK"
}