Commit Graph

22 Commits

Author SHA1 Message Date
hhs
5910e02a66 ci: deploy 工作流增加 main 分支触发 2026-06-20 11:59:07 +08:00
hhs
c0b4eeda46 refactor: 统一配置文件系统
- 补全 backend/config.yaml 所有非敏感配置项并添加中文注释
- 重写 config.go:Load(workDir) 显式传参,BindEnv 绑定敏感字段,删除 AutomaticEnv
- setDefaults 默认值与 config.yaml 保持一致(mimo/dashscope)
- backend/.env.example 重写为纯敏感信息模板
- .env 固定在 /opt/camtalk/.env,docker-compose 通过绝对路径加载
- deploy.sh 统一使用 --env-file,移除硬编码 IP
- deploy.yml 删除 CI 写入 .env 的步骤
- Dockerfile 移除 COPY config.yaml
- 修复 deploy.yml 中 POSTGRES_PASSWORD 的 &{{ 拼写错误
2026-06-19 18:41:35 +08:00
hhs
ffcb11625a ci: 简化 Docker CLI 安装,仅使用 apk 2026-06-14 15:11:08 +08:00
hhs
159db37a60 ci: 修复部署脚本找不到 docker 命令的问题 2026-06-14 15:08:52 +08:00
hhs
9e813f0a08 ci: 合并 workflow,仅保留 push main 时自动部署 2026-06-14 15:01:46 +08:00
hhs
b358bf05b5 ci: 移除 deploy 工作流中多余的依赖安装和健康检查步骤 2026-06-14 14:54:59 +08:00
hhs
304a45b0ad fix: 修复 deploy 工作流缺少 Docker 导致构建失败的问题 2026-06-14 14:37:00 +08:00
hhs
73eae8a118 fix: 修复 deploy 工作流缺少 Node.js 导致 checkout 失败的问题 2026-06-14 14:27:04 +08:00
hhs
65718a8460 ci: 添加 Gitea Actions 部署工作流
- PR 到 main 时验证 Docker 镜像构建
- push 到 main 时自动构建并部署,含健康检查
2026-06-14 13:38:35 +08:00
hhs
a666b82e64 ci: 更新 Go 容器版本为 1.26.2 2026-06-13 20:57:31 +08:00
hhs
c7f741943d ci: 移除 health-test 工作流 2026-06-13 11:46:34 +08:00
hhs
8ce5c02730 ci: 统一 workflow 步骤名称为英文 2026-06-13 11:45:08 +08:00
hhs
3d7d7d190c fix: 修正 install node 步骤的 working-directory 并使用阿里云镜像源 2026-06-13 11:41:08 +08:00
hhs
c5c9bf802f fix: 使用 Alpine 容器镜像解决 checkout action 找不到 node 的问题 2026-06-13 11:38:48 +08:00
hhs
17c8ced6bd fix: 移除 setup-go/setup-node,宿主机已预装 Go 和 Node 2026-06-13 11:29:41 +08:00
hhs
2ce04dcca1 fix: 为 uses 的 URL 加引号修复 YAML 解析错误 2026-06-13 10:46:32 +08:00
hhs
8c9a9d6020 ci: 添加 health test 工作流用于验证 Gitea Actions 运行 2026-06-13 10:42:07 +08:00
hhs
324b3c9f8a fix: 移除 container 字段和 paths 过滤器,恢复 setup-go/setup-node 以兼容 Gitea Actions 2026-06-13 10:39:20 +08:00
hhs
ebbe33aeed fix: 修正 Gitea Actions 工作流目录名为复数形式 workflows 2026-06-13 10:34:36 +08:00
hhs
63933a645f ci: 配置 Docker 容器运行、镜像源及自建 checkout action 2026-06-13 10:25:02 +08:00
hhs
4967de3556 ci: 调整 CI 触发分支为 main,运行环境改为 aliyun 2026-06-13 10:01:43 +08:00
hhs
0304c1d27f ci: 添加前端与后端 Gitea Actions 持续集成工作流 2026-06-12 23:39:42 +08:00