From 0b6d04834227a13cb92a23218ea1b64c3089fd41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Berthaud-M=C3=BCller?= Date: Tue, 17 Aug 2021 22:23:22 +0200 Subject: [PATCH] update ci --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1152a0c..647cb58 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,8 @@ before_script: - mkdir -p $HOME/.ssh - chmod 700 $HOME/.ssh - echo "$SSH_KNOWN_HOSTS" >> $HOME/.ssh/known_hosts - - chmod 644 $HOME/.ssh/known_hosts + - echo "$SSH_CONFIG" >> $HOME/.ssh/config + - chmod 644 $HOME/.ssh/{known_hosts,config} stages: - build @@ -34,5 +35,5 @@ deploy: stage: deploy script: - scp -r zones catalog-zones ${SSH_PRIMARY_NS}:/var/lib/knot/ - - ssh ${SSH_PRIMARY_NS} 'chown -R knot:knot /var/lib/knot/{zones,catalog-zones} && knotc reload' + - ssh ${SSH_PRIMARY_NS} 'knotc reload' when: manual