fix(ci): frontend SSH init should test UI_HOST not WS_HOST
Some checks failed
CI / fmt (push) Successful in 44s
CI / clippy (push) Successful in 1m19s
CI / check (push) Successful in 1m34s
Publish / backend (push) Waiting to run
Publish / frontend (push) Failing after 51s

Also bump ConnectTimeout to 5s for the frontend SSH init.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-06 18:08:36 +03:00
parent 3b9ef6407c
commit 022c38bdc2

View File

@@ -19,12 +19,12 @@ jobs:
npm ci
npm run build
- name: Set up SSH
- name: SSH init
run: |
mkdir -p ~/.ssh
echo "${PUBLISH_KEY}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o ConnectTimeout=1 -o StrictHostKeyChecking=accept-new gitea_ci@${{ vars.WS_HOST }} 'echo $(hostname -f) connection succeeded'
ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=accept-new gitea_ci@${{ vars.UI_HOST }} 'echo $(hostname -f) connection succeeded'
- name: Deploy static files to UI host
run: |