From 89392b0fa4d462df4d13478fe894336233213fbb Mon Sep 17 00:00:00 2001 From: syadmin Date: Sat, 14 Nov 2026 21:44:17 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E9=83=A8=E7=BD=B2=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20test=20=E5=88=86=E6=94=AF=EF=BC=88?= =?UTF-8?q?=E6=8C=89=E5=B9=B3=E5=8F=B0=E5=8F=91=E5=B8=83=E7=BA=AA=E5=BE=8B?= =?UTF-8?q?=EF=BC=9A=E5=90=88=E5=B9=B6=20main=E2=86=92test=20=E5=8D=B3?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=88=B0=E6=B5=8B=E8=AF=95=E5=8C=BA=E7=9A=84?= =?UTF-8?q?=E5=86=B3=E5=AE=9A=EF=BC=89=EF=BC=8C=E9=83=A8=E7=BD=B2=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E8=B7=9F=E8=B8=AA=20origin/test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-hxtesting.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-hxtesting.yml b/.gitea/workflows/deploy-hxtesting.yml index aa38858..e900385 100644 --- a/.gitea/workflows/deploy-hxtesting.yml +++ b/.gitea/workflows/deploy-hxtesting.yml @@ -1,5 +1,5 @@ # hxtesting 测试服自动部署 -# 触发:push 到 main(同事更新代码后自动构建部署),也支持手动触发 +# 触发:push 到 test 分支(按平台发布纪律:合并 main→test 即一次发布决定),也支持手动触发 # 执行:hxtesting 宿主上的 gitea-runner(label=deploy-host,host 模式) # 说明:构建 app/frontend 镜像并顶替同名 latest tag,docreader/sandbox 等沿用官方镜像; # 每次构建额外打 sha-<短提交> tag 便于回滚。 @@ -7,7 +7,7 @@ name: deploy-hxtesting on: push: - branches: [main] + branches: [test] workflow_dispatch: jobs: @@ -21,8 +21,8 @@ jobs: run: | set -e cd "$DEPLOY_DIR" - git fetch origin main - git reset --hard origin/main + git fetch origin + git checkout -q -B test origin/test echo "GIT_SHA=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV" echo "当前部署提交: $(git log --oneline -1)"