fix(ci): Gitea runner 下 PostgreSQL 服务容器主机名用服务名而非 localhost

act_runner 的 job 运行在容器内,与服务容器同处 gitea_gitea 网络,
localhost:5432 在 job 容器里无监听导致此前 8 次 verify 全部失败;
改用服务名 postgres 解析,并注释说明防止改回
This commit is contained in:
Jayway Liu
2026-09-26 16:06:16 +08:00
parent a3d91ad17f
commit 35789379ab
+3 -1
View File
@@ -16,7 +16,9 @@ jobs:
--health-cmd pg_isready --health-interval 5s
--health-timeout 5s --health-retries 10
env:
DATABASE_URL: postgresql://postgres:ci-only-password@localhost:5432/traceiq
# Gitea act_runner 的 job 跑在容器里,与服务容器同网络:主机名必须用服务名
# postgres(GitHub 托管 runner 的 localhost 语义在这里连不通,勿改回)。
DATABASE_URL: postgresql://postgres:ci-only-password@postgres:5432/traceiq
E2E_PASSWORD: CI-Test-Only-SecurePassword882!
PYTHONPATH: .
steps: