simplify ci
This commit is contained in:
parent
54f198a3aa
commit
a77fe2b49a
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,7 @@ image: debian:stable-slim
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y ssh-client git knot
|
- apt-get install -y ssh-client knot
|
||||||
# from https://docs.gitlab.com/ee/ci/ssh_keys/
|
# from https://docs.gitlab.com/ee/ci/ssh_keys/
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
|
@ -16,6 +16,7 @@ deploy:
|
||||||
- |
|
- |
|
||||||
for zonefile in zones/*; do
|
for zonefile in zones/*; do
|
||||||
zone=$(basename $zonefile .zone)
|
zone=$(basename $zonefile .zone)
|
||||||
|
echo "Checking zone $zone..."
|
||||||
kzonecheck -v -o $zone $zonefile
|
kzonecheck -v -o $zone $zonefile
|
||||||
echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zones/dns-witch-catalog.zone
|
echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zones/dns-witch-catalog.zone
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue