Files
awoooi/.gitea/workflows
OG T b636d3b30b
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 44s
fix(ci): cd.yaml B5 integration test 修 docker network 隔離 (run 984/985 root cause)
連續 2 次 CD fail (run 984 + 985) 真因:
  - act runner 把 ci-runner container 跑在獨立 user-defined network
  - cd.yaml line 159-167 docker run pg-test-b5 沒 --network → 預設 host bridge
  - ci-runner 看不到 host bridge IP 172.17.0.2:5432 → timeout
  - host SSH 直連 PG 健康 (確認 PG 沒問題,純網路隔離)

修復:
  + 動態抓 act task network: docker network ls | grep '^GITEA-ACTIONS-TASK-[0-9]+_WORKFLOW-.*-network$'
  + pg-test-b5 加入該 network: --network=$ACT_NET (找不到時 fallback bridge)
  + 連線改 container name 'pg-test-b5' (不依賴 IP)

驗證: 本 commit push 後 CI 自己跑就是 E2E 驗證

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 13:19:04 +08:00
..