forked from PowerDNS/pdns
-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (26 loc) · 1.21 KB
/
secpoll.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
name: 'Verify secpoll zone syntax'
on:
push:
pull_request:
jobs:
build:
name: check secpoll zone
# on a ubuntu-20.04 VM
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 5
submodules: recursive
- run: sh docs/secpoll-check.sh docs/secpoll.zone
- run: echo 'deb [arch=amd64] http://repo.powerdns.com/ubuntu focal-auth-master main' | sudo tee /etc/apt/sources.list.d/pdns.list
- run: "echo -ne 'Package: pdns-*\nPin: origin repo.powerdns.com\nPin-Priority: 600\n' | sudo tee /etc/apt/preferences.d/pdns"
- run: sudo curl https://repo.powerdns.com/CBC8B383-pub.asc -o /etc/apt/trusted.gpg.d/CBC8B383-pub.asc
- run: sudo apt-get update
- run: sudo systemctl mask pdns
- run: sudo apt-get install -y pdns-server pdns-backend-sqlite3
- run: "echo -ne 'launch=gsqlite3\ngsqlite3-database=/var/lib/powerdns/pdns.sqlite3\n' | sudo tee /etc/powerdns/pdns.conf"
- run: sudo sqlite3 /var/lib/powerdns/pdns.sqlite3 < /usr/share/doc/pdns-backend-sqlite3/schema.sqlite3.sql
- run: sudo pdnsutil load-zone secpoll.powerdns.com docs/secpoll.zone
- run: sudo pdnsutil check-zone secpoll.powerdns.com