make deploy manual

This commit is contained in:
Hannaeko 2021-07-30 17:15:00 +02:00
parent aff4fc8555
commit d8240fbf9b

View file

@ -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