add stages
This commit is contained in:
parent
b37df1b293
commit
37fd063c05
1 changed files with 6 additions and 0 deletions
|
@ -11,7 +11,12 @@ before_script:
|
|||
- echo "$SSH_KNOWN_HOSTS" >> $HOME/.ssh/known_hosts
|
||||
- chmod 644 $HOME/.ssh/known_hosts
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- |
|
||||
for zonefile in zones/*; do
|
||||
|
@ -22,6 +27,7 @@ build:
|
|||
done
|
||||
|
||||
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'
|
||||
|
|
Loading…
Reference in a new issue