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