feat: add container CI/CD workflow

This commit is contained in:
2026-08-17 19:02:02 +08:00
parent a37f06352c
commit 178e74b403
4 changed files with 47 additions and 10 deletions
+11
View File
@@ -99,3 +99,14 @@ bun test tests/**/*.test.ts
```
`bun run check` 会检查服务代码和 `.opencode` 工具的类型。
## CI/CD
Gitea Actions 通过 `.gitea/workflows/package.yml` 复用
`OrgTJWater/ci-templates` 的容器发布流程。手动触发只构建镜像并在 Dev
服务器运行候选验证;从 `main` 创建并推送 `v*` tag 后,候选验证通过才会
提升为正式 `agent` 服务。
仓库需要配置 `REGISTRY_USERNAME``REGISTRY_PASSWORD`
`DEV_DEPLOY_SSH_KEY` 三个 Gitea Secrets。`.env`、持久化数据、日志和
`source/` 业务数据不会写入镜像;它们由 Dev 服务器通过环境文件和卷挂载。