From 8cb398e06f6fcc8a223fd0c438e711dfe76b023d Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Thu, 3 Dec 2026 08:38:16 +0100 Subject: [PATCH] Point web CI deployment to the dedicated host --- .forgejo/tests/web-deploy.test.mjs | 8 ++++++++ .forgejo/workflows/web-deploy.yml | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.forgejo/tests/web-deploy.test.mjs b/.forgejo/tests/web-deploy.test.mjs index 2874e598..472e930c 100644 --- a/.forgejo/tests/web-deploy.test.mjs +++ b/.forgejo/tests/web-deploy.test.mjs @@ -44,3 +44,11 @@ test('publication comparison, artifact upload and deployment require canonical m if (name !== 'Trigger deployment after successful CI') assert.doesNotMatch(body, /DUNEREALMS_DEPLOY_KEY|ssh .*dunedeploy@/); } }); + + +test('deployment uses the verified dedicated host and its pinned SSH key', () => { + const deploy = step('Trigger deployment after successful CI'); + assert.ok(deploy.includes('95.216.100.187 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICdHgR/5lVFKbOpAYR2+/Bi5LSg+8nDCSm77mJOmJKRg')); + assert.ok(deploy.includes('dunedeploy@95.216.100.187')); + assert.ok(!deploy.includes('91.107.196.242')); +}); diff --git a/.forgejo/workflows/web-deploy.yml b/.forgejo/workflows/web-deploy.yml index cd75e390..ea4a8b42 100644 --- a/.forgejo/workflows/web-deploy.yml +++ b/.forgejo/workflows/web-deploy.yml @@ -87,7 +87,7 @@ jobs: printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/deploy_key chmod 600 ~/.ssh/deploy_key trap 'rm -f ~/.ssh/deploy_key' EXIT - printf '%s\n' '91.107.196.242 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC8x/XocsIz41fWHGty0DbZhSvafSQFt9jaHHgzdr55W root@ubuntu-4gb-fsn1-1' >> ~/.ssh/known_hosts - ssh -p 22 -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=yes dunedeploy@91.107.196.242 "$GITHUB_SHA" + printf '%s\n' '95.216.100.187 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICdHgR/5lVFKbOpAYR2+/Bi5LSg+8nDCSm77mJOmJKRg' >> ~/.ssh/known_hosts + ssh -p 22 -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=yes dunedeploy@95.216.100.187 "$GITHUB_SHA" rm -f ~/.ssh/deploy_key -- 2.53.0