From 7889d55f69092517f324c1d93f6309b8fce98f38 Mon Sep 17 00:00:00 2001
From: "Becker, Benjamin" <benjamin.becker@dataport.de>
Date: Fri, 10 Dec 2021 13:13:19 +0100
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1233cf88..2e87f9bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,10 @@ deploy-job:
         - echo "$id_rsa" | tr -d '\r' | ssh-add -
         - mkdir -p ~/.ssh
         - chmod 700 ~/.ssh
+        - ssh-keyscan 10.61.63.40 >> ~/.ssh/known_hosts
+        - ssh-keyscan 10.61.63.41 >> ~/.ssh/known_hosts
+        - chmod 644 ~/.ssh/known_hosts
+        
     script:
         - ssh root@10.61.63.40 "cd /usr/lib/ckan/default/src/ckan/ && git pull && service apache2 reload"
         - ssh root@10.61.63.41 "cd /usr/lib/ckan/default/src/ckan/ && git pull && service apache2 reload"
\ No newline at end of file
-- 
GitLab