30
30
# -d '{"image":"debian-12"}' \
31
31
# "https://api.hetzner.cloud/v1/servers/${{ secrets.STAGING_SERVER_ID }}/actions/rebuild"
32
32
33
- - name : initenv
34
- run : scripts/initenv.sh
33
+ - run : scripts/initenv.sh
35
34
36
35
- name : append venv/bin to PATH
37
36
run : echo venv/bin >>$GITHUB_PATH
@@ -51,25 +50,23 @@ jobs:
51
50
# rsync -avz acme [email protected] :/var/lib/ || true
52
51
# rsync -avz dkim [email protected] :/var/lib/rspamd/ || true
53
52
54
- - name : cmdeploy init staging.testrun.org
55
- run : cmdeploy init staging.testrun.org
53
+ - run : cmdeploy init staging.testrun.org
56
54
57
- - name : cmdeploy run
58
- run : cmdeploy run
55
+ - run : cmdeploy run
59
56
60
57
- name : set DNS entries
61
58
run : |
62
59
#ssh -o StrictHostKeyChecking=accept-new -v [email protected] chown _rspamd:_rspamd -R /var/lib/rspamd/dkim
63
- echo "${{ secrets.DEFAULT_DNS_ZONE }}" > staging.testrun.org.zone
64
60
cmdeploy dns --zonefile staging-generated.zone
65
- cat staging-generated.zone >> staging.testrun.org.zone
66
- scp -o StrictHostKeyChecking=accept-new staging.testrun.org.zone [email protected] :/etc/nsd/staging.testrun.org.zone
61
+ cat staging-generated.zone >> .github/workflows/staging.testrun.org-default.zone
62
+ cat .github/workflows/staging.testrun.org-default.zone
63
+ scp -o StrictHostKeyChecking=accept-new .github/workflows/staging.testrun.org-default.zone [email protected] :/etc/nsd/staging.testrun.org.zone
67
64
ssh [email protected] nsd-checkzone staging.testrun.org /etc/nsd/staging.testrun.org.zone
68
65
ssh [email protected] systemctl reload nsd
69
66
70
67
- name : cmdeploy test
71
68
run : CHATMAIL_DOMAIN2=nine.testrun.org cmdeploy test --slow
72
69
73
- - name : cmdeploy dns
70
+ - name : cmdeploy dns (try 3 times)
74
71
run : cmdeploy dns || cmdeploy dns || cmdeploy dns
75
72
0 commit comments