add zonecheck
This commit is contained in:
parent
4c14568d1f
commit
59cfc3b356
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue