From bfaedb5cf109623dbba5323c81a18f36ecf32490 Mon Sep 17 00:00:00 2001 From: missytake Date: Wed, 17 Jan 2024 15:57:55 +0100 Subject: [PATCH] CI: save /var/lib/rspamd/dkim from getting wiped --- .github/workflows/test-and-deploy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-and-deploy.yaml b/.github/workflows/test-and-deploy.yaml index 0cf655c9..d2b6cfa1 100644 --- a/.github/workflows/test-and-deploy.yaml +++ b/.github/workflows/test-and-deploy.yaml @@ -20,6 +20,7 @@ jobs: chmod 600 ~/.ssh/id_ed25519 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/rspamd/dkim . || true - name: rebuild staging.testrun.org to have a clean VPS 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 ssh -o StrictHostKeyChecking=accept-new -v root@staging.testrun.org id -u 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 run: cmdeploy init staging.testrun.org @@ -57,6 +59,7 @@ jobs: - name: set DNS entries 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 cmdeploy dns --zonefile staging-additional.zone cat staging-additional.zone >> staging.testrun.org.zone