forked from unimatrix/web
Point web CI deployment to the dedicated host
This commit is contained in:
parent
791a6408ca
commit
8cb398e06f
2 changed files with 10 additions and 2 deletions
|
|
@ -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'));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff