fix(ci): rebuild guard 容器名稱錯誤 momo-postgres → momo-db
All checks were successful
CD Pipeline / deploy (push) Successful in 1m16s

This commit is contained in:
OoO
2026-04-28 10:42:24 +08:00
parent b63af671f0
commit 6924c8ea8a

View File

@@ -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" \