diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 344790e..ae8a350 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,8 +15,8 @@ deploy: script: - | for zonefile in zones/*; do - zone=$(basename $zonefile) - kzonecheck -v -o $zone zone/$zonefile + zone=$(basename $zonefile .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 - '[ -n "$(git diff --name-only HEAD~ zones)" ] && scp $(git diff --name-only HEAD~ zones) ${SSH_PRIMARY_NS}:/var/lib/knot/zones'