From 6924c8ea8a7c70726c679367bbf0a1f1bccb63e3 Mon Sep 17 00:00:00 2001 From: OoO Date: Tue, 28 Apr 2026 10:42:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20rebuild=20guard=20=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E5=90=8D=E7=A8=B1=E9=8C=AF=E8=AA=A4=20momo-postgres=20?= =?UTF-8?q?=E2=86=92=20momo-db?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cd.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 73ae1d9..1142de1 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -177,10 +177,10 @@ jobs: - name: 同步所有檔案並重建 Image if: steps.deploy_type.outputs.type == 'rebuild' run: | - # H5: ADR-011 守衛 — momo-postgres 必須存活才允許 rebuild + # H5: ADR-011 守衛 — momo-db 必須存活才允許 rebuild ssh -i ~/.ssh/id_deploy ollama@192.168.0.188 \ - "docker ps --format '{{.Names}}' | grep -q 'momo-postgres' || \ - (echo 'ABORT: momo-postgres not running' && exit 1)" + "docker ps --format '{{.Names}}' | grep -q '^momo-db$' || \ + (echo 'ABORT: momo-db not running' && exit 1)" # H1: 與 Sync 模式對齊的完整 excludes(含 .gitea/ .claude/ docs/ *.md) rsync -avz --ignore-errors \ -e "ssh -i ~/.ssh/id_deploy" \