update ci
This commit is contained in:
parent
addad1383d
commit
0b6d048342
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue