Point web CI deployment to the dedicated host
All checks were successful
DuneRealms Web CI / web (push) Successful in 6m58s

This commit is contained in:
unimatrixgit 2026-12-03 08:38:16 +01:00
commit 8cb398e06f
2 changed files with 10 additions and 2 deletions

View file

@ -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@/); 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'));
});

View file

@ -87,7 +87,7 @@ jobs:
printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/deploy_key printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key chmod 600 ~/.ssh/deploy_key
trap 'rm -f ~/.ssh/deploy_key' EXIT 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 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@91.107.196.242 "$GITHUB_SHA" 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 rm -f ~/.ssh/deploy_key