fix(ci): set host prefix for staging deploy
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 17s
Deploy / Deploy Staging (push) Failing after 1m1s

This commit is contained in:
Xiaoxia AI
2026-06-24 19:41:29 +08:00
parent 4b81a6e4d8
commit ecc3feb746
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ jobs:
run: |
set -eu
chmod +x /var/lib/xiaoxia-saas-staging/repo/infra/docker/deploy-staging.sh
WEB_PORT=3001 /var/lib/xiaoxia-saas-staging/repo/infra/docker/deploy-staging.sh
HOST_PREFIX= WEB_PORT=3001 /var/lib/xiaoxia-saas-staging/repo/infra/docker/deploy-staging.sh
- name: Verify staging health
shell: sh
+6
View File
@@ -148,3 +148,9 @@ V21 结构:三张套餐 feature 卡片,免费版/专业版/企业版,推
- Runner ubuntu-latest 原标签绑定 docker://node:20-bookworm,导致 host-shell deploy 仍尝试拉 Node 镜像。
- 已改为纯 ubuntu-latest 标签并重启 runner,后续 deploy job 应在宿主机 shell 执行。
## 2026-06-24 Staging Deploy Path 修复记录
- Host-shell 执行 deploy-staging.sh 时脚本默认 HOST_PREFIX=/host,导致找不到 /host/var/lib/xiaoxia-saas-staging/repo。
- Workflow 已改为 HOST_PREFIX= WEB_PORT=3001 .../deploy-staging.sh,适配宿主机直接执行。