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
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:
@@ -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
|
||||
|
||||
@@ -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,适配宿主机直接执行。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user