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/