mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
CI: save /var/lib/rspamd/dkim from getting wiped
This commit is contained in:
3
.github/workflows/test-and-deploy.yaml
vendored
3
.github/workflows/test-and-deploy.yaml
vendored
@@ -20,6 +20,7 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
ssh-keyscan staging.testrun.org > ~/.ssh/known_hosts
|
ssh-keyscan staging.testrun.org > ~/.ssh/known_hosts
|
||||||
rsync -avz root@staging.testrun.org:/var/lib/acme . || true
|
rsync -avz root@staging.testrun.org:/var/lib/acme . || true
|
||||||
|
rsync -avz root@staging.testrun.org:/var/lib/rspamd/dkim . || true
|
||||||
|
|
||||||
- name: rebuild staging.testrun.org to have a clean VPS
|
- name: rebuild staging.testrun.org to have a clean VPS
|
||||||
run: |
|
run: |
|
||||||
@@ -48,6 +49,7 @@ jobs:
|
|||||||
while ! ssh -o ConnectTimeout=180 -o StrictHostKeyChecking=accept-new -v root@staging.testrun.org id -u ; do sleep 1 ; done
|
while ! ssh -o ConnectTimeout=180 -o StrictHostKeyChecking=accept-new -v root@staging.testrun.org id -u ; do sleep 1 ; done
|
||||||
ssh -o StrictHostKeyChecking=accept-new -v root@staging.testrun.org id -u
|
ssh -o StrictHostKeyChecking=accept-new -v root@staging.testrun.org id -u
|
||||||
rsync -avz acme root@staging.testrun.org:/var/lib/ || true
|
rsync -avz acme root@staging.testrun.org:/var/lib/ || true
|
||||||
|
rsync -avz dkim root@staging.testrun.org:/var/lib/rspamd/ || true
|
||||||
|
|
||||||
- name: cmdeploy init staging.testrun.org
|
- name: cmdeploy init staging.testrun.org
|
||||||
run: cmdeploy init staging.testrun.org
|
run: cmdeploy init staging.testrun.org
|
||||||
@@ -57,6 +59,7 @@ jobs:
|
|||||||
|
|
||||||
- name: set DNS entries
|
- name: set DNS entries
|
||||||
run: |
|
run: |
|
||||||
|
ssh -o StrictHostKeyChecking=accept-new -v root@staging.testrun.org chown _rspamd:_rspamd -R /var/lib/rspamd/dkim
|
||||||
echo "${{ secrets.DEFAULT_DNS_ZONE }}" > staging.testrun.org.zone
|
echo "${{ secrets.DEFAULT_DNS_ZONE }}" > staging.testrun.org.zone
|
||||||
cmdeploy dns --zonefile staging-additional.zone
|
cmdeploy dns --zonefile staging-additional.zone
|
||||||
cat staging-additional.zone >> staging.testrun.org.zone
|
cat staging-additional.zone >> staging.testrun.org.zone
|
||||||
|
|||||||
Reference in New Issue
Block a user