From f6e9a1f38d3fbab1f2306279a67744a850fe7795 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Thu, 1 Apr 2021 20:25:42 +1030 Subject: [PATCH] updated gitlab-ci --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index baa7314..e072bae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,8 @@ deploy-job: - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - mkdir -p ~/.ssh - chmod 700 ~/.ssh + - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts script: - ssh "$Live_Server_User"@"$Live_Server_Ip" -p 10122 "touch test" # script: