From dbce498e89d717d06cd826de32059d3262408a30 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Sun, 14 Nov 2021 15:41:10 +0300 Subject: [PATCH] add a known_hosts file --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 104ea9b..0d69a60 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,6 +44,8 @@ deploy-job: # This job runs in the deploy stage. - chmod 700 ~/.ssh - eval $(ssh-agent -s) - echo "$DEPLOY_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - echo "$DEPLOY_KNOWN_HOSTS" > .ssh/known_hosts + - chmod 0600 .ssh/known_hosts - ssh-add -l script: - rsync -ciIlprz out/ deploy@devurandom.xyz:~/out/