From d8240fbf9b28e567c1057290806a7282f0bdca80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Berthaud-M=C3=BCller?= Date: Fri, 30 Jul 2021 17:15:00 +0200 Subject: [PATCH] make deploy manual --- .gitlab-ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 76b6fc8..284a8b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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