From 120f12c9cd1a2c5933bf3c07b0a5904b4a3a58a0 Mon Sep 17 00:00:00 2001 From: s0dy Date: Sat, 17 Nov 2018 17:40:07 +0100 Subject: [PATCH] -e ssh --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd63558..65e0f40 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,12 @@ image: dblaci/ubuntu-ssh-rsync before_script: - - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) + #- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh - chmod 700 ~/.ssh + - ssh-keyscan 35.180.10.123 >> ~/.ssh/known_hosts deploy_to_webserver: stage: deploy