split job
This commit is contained in:
parent
a77fe2b49a
commit
b37df1b293
1 changed files with 4 additions and 1 deletions
|
@ -11,7 +11,7 @@ before_script:
|
||||||
- echo "$SSH_KNOWN_HOSTS" >> $HOME/.ssh/known_hosts
|
- echo "$SSH_KNOWN_HOSTS" >> $HOME/.ssh/known_hosts
|
||||||
- chmod 644 $HOME/.ssh/known_hosts
|
- chmod 644 $HOME/.ssh/known_hosts
|
||||||
|
|
||||||
deploy:
|
build:
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
for zonefile in zones/*; do
|
for zonefile in zones/*; do
|
||||||
|
@ -20,5 +20,8 @@ deploy:
|
||||||
kzonecheck -v -o $zone $zonefile
|
kzonecheck -v -o $zone $zonefile
|
||||||
echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zones/dns-witch-catalog.zone
|
echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zones/dns-witch-catalog.zone
|
||||||
done
|
done
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
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} 'chown -R knot:knot /var/lib/knot/{zones,catalog-zones} && knotc reload'
|
||||||
|
|
Loading…
Reference in a new issue