diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eaef69c..8e63b41 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,6 @@ deploy_production: - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - chmod 700 ~/.ssh/ - - ssh-keyscan -H 'discovery.cs.hhu.de' > ~/.ssh/known_hosts + - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts script: - ssh root@discovery.cs.hhu.de