From 59cfc3b3564b557dee3a480a87b2589e4fe50ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Berthaud-M=C3=BCller?= Date: Thu, 29 Jul 2021 23:12:30 +0200 Subject: [PATCH] add zonecheck --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b728b85..344790e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: debian:stable-slim before_script: - apt-get update - - apt-get install -y ssh-client + - apt-get install -y ssh-client git knot # from https://docs.gitlab.com/ee/ci/ssh_keys/ - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - @@ -16,6 +16,7 @@ deploy: - | for zonefile in zones/*; do zone=$(basename $zonefile) + kzonecheck -v -o $zone 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'