CI: check whether cmdeploy dns --zonefile works

This commit is contained in:
missytake
2024-01-10 15:51:52 +01:00
parent 0cea5840df
commit 532d094a08
3 changed files with 22 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3
# disabled for now, we don't want to reset TLS cert, and for testing nine.testrun.org resetting makes less sense
#- name: rebuild staging.testrun.org to have a clean VPS
# run: |
# curl -X POST \
@@ -49,6 +50,16 @@ jobs:
- name: cmdeploy run
run: cmdeploy run
- name: cmdeploy dns
run: |
echo "${{ secrets.DEFAULT_DNS_ZONE }}" > staging.testrun.org.zone
cmdeploy dns --zonefile staging-additional.zone
cat staging-additional.zone >> staging.testrun.org.zone
scp -o StrictHostKeyChecking=accept-new staging.testrun.org.zone root@ns.testrun.org:/etc/nsd/staging.testrun.org.zone
ssh root@ns.testrun.org nsd-checkzone staging.testrun.org /etc/nsd/staging.testrun.org.zone
ssh root@ns.testrun.org systemctl reload nsd
cmdeploy dns
- name: cmdeploy test
run: cmdeploy test --slow