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:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
for zonefile in zones/*; do
|
for zonefile in zones/*; do
|
||||||
zone=$(basename $zonefile .zone)
|
zone=$(basename $zonefile .zone)
|
||||||
echo "Checking zone $zone..."
|
echo "Checking zone $zone..."
|
||||||
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
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- catalog-zones/*
|
- catalog-zones/*
|
||||||
|
@ -33,5 +33,6 @@ build:
|
||||||
deploy:
|
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} 'chown -R knot:knot /var/lib/knot/{zones,catalog-zones} && knotc reload'
|
||||||
|
when: manual
|
||||||
|
|
Loading…
Reference in a new issue