make deploy manual
This commit is contained in:
parent
aff4fc8555
commit
d8240fbf9b
1 changed files with 10 additions and 9 deletions
|
@ -18,13 +18,13 @@ stages:
|
|||
build:
|
||||
stage: build
|
||||
script:
|
||||
- |
|
||||
for zonefile in zones/*; do
|
||||
zone=$(basename $zonefile .zone)
|
||||
echo "Checking zone $zone..."
|
||||
kzonecheck -v -o $zone $zonefile
|
||||
echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zones/dns-witch-catalog.zone
|
||||
done
|
||||
- |
|
||||
for zonefile in zones/*; do
|
||||
zone=$(basename $zonefile .zone)
|
||||
echo "Checking zone $zone..."
|
||||
kzonecheck -v -o $zone $zonefile
|
||||
echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zones/dns-witch-catalog.zone
|
||||
done
|
||||
artifacts:
|
||||
paths:
|
||||
- catalog-zones/*
|
||||
|
@ -33,5 +33,6 @@ build:
|
|||
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'
|
||||
- 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'
|
||||
when: manual
|
||||
|
|
Loading…
Reference in a new issue