这台 runner 的 services 不可用(服务名解析不了、端口也没发布到 job), 改为装 PostgreSQL 并 initdb 一个临时集群: - apt 安装 postgresql,顺带提供 psql 客户端,去掉单独的安装步骤 - root 下切 postgres 用户 initdb --auth=trust,pg_ctl 起在 127.0.0.1:55432 - 把 PG* 与 ARTEX_PG_DSN 写入 GITHUB_ENV,后续步骤与测试直接使用 - 已在 debian:bookworm-slim 容器内实跑验证整段脚本
- backend:日志显示服务名 postgres 无法解析(runner 为 host 网络,services 只 发布端口、不提供容器别名)。给 service 加 55432:5432 端口映射,并改为依次 探测 postgres:5432 与 127.0.0.1:55432,连上后写入 PG* 与 ARTEX_PG_DSN; 都不通时打印解析结果,便于判断网络模式。 - frontend/release:setup-node 的 cache 只接受 npm/yarn/pnpm,之前的 cache: false 会导致 "Caching for 'false' is not supported" 直接失败,去掉该键。
- ci.yml:push main 时起 postgres:16 服务容器,应用 schema.sql 并补建 llm_usage, 跑 go mod verify / go vet / go test -p 1 ./...;不接 PR 触发。 -skip 掉当前已失败的 TestGraphOverviewExpandsAssociatedCompanyScope。 - release.yml:v* tag 触发,只构建 linux/amd64 与 linux/arm64,从 CHANGELOG 提取说明,用 gitea-release-action 建 Release 上传 zip 与 SHA256SUMS, 再用 buildx 推多架构镜像到 gitea.bcde.io/wangdefa/artex。 - .dockerignore:排除 dist 下的 zip 与中间产物,只放 dist/<arch>/artex 进构建上下文。 - 删除 .github/workflows:本仓库 CI/CD 全部走 .gitea/workflows。留着的副本会被 Gitea 一并扫描,同一个 tag 触发两套发布流程、重复建 Release。