fix(ci): frontend SSH init should test UI_HOST not WS_HOST
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:
@@ -19,12 +19,12 @@ jobs:
|
|||||||
npm ci
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Set up SSH
|
- name: SSH init
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${PUBLISH_KEY}" > ~/.ssh/id_ed25519
|
echo "${PUBLISH_KEY}" > ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.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
|
- name: Deploy static files to UI host
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user