update ci

This commit is contained in:
Hannaeko 2021-08-17 22:23:22 +02:00
parent addad1383d
commit 0b6d048342

View file

@ -9,7 +9,8 @@ before_script:
- mkdir -p $HOME/.ssh - mkdir -p $HOME/.ssh
- chmod 700 $HOME/.ssh - chmod 700 $HOME/.ssh
- echo "$SSH_KNOWN_HOSTS" >> $HOME/.ssh/known_hosts - 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: stages:
- build - build
@ -34,5 +35,5 @@ deploy:
stage: deploy stage: deploy
script: script:
- scp -r zones catalog-zones ${SSH_PRIMARY_NS}:/var/lib/knot/ - 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 when: manual