Commit Graph

8 Commits

Author SHA1 Message Date
9d1f52d95b fix: health 路由路径修正为 /health
All checks were successful
CI/CD Pipeline / Code Quality (push) Successful in 15s
CI/CD Pipeline / Unit Tests (push) Successful in 8s
CI/CD Pipeline / Build & Deploy Test (push) Has been skipped
CI/CD Pipeline / Build & Deploy Production (push) Successful in 1m15s
healthRoutes 注册时无 /v1 前缀,实际路径是 /health 而非 /v1/health。
将 auth 中间件白名单从 /v1/health 改为 /health,并同步修正所有
HEALTHCHECK 和 CI health check 路径。
2026-04-18 04:13:59 +08:00
af55992627 fix: health check 路径补充 /v1 前缀
Some checks failed
CI/CD Pipeline / Code Quality (push) Successful in 14s
CI/CD Pipeline / Unit Tests (push) Successful in 8s
CI/CD Pipeline / Build & Deploy Test (push) Has been skipped
CI/CD Pipeline / Build & Deploy Production (push) Failing after 57s
API 路由挂载在 /v1 下,/health 路径被 auth 中间件拦截返回 401,
统一改为 /v1/health。
2026-04-18 03:27:44 +08:00
6b65e1bcfa fix: 构建阶段安装全部依赖
Some checks failed
CI/CD Pipeline / Code Quality (push) Successful in 16s
CI/CD Pipeline / Unit Tests (push) Successful in 10s
CI/CD Pipeline / Build Test Image (push) Has been skipped
CI/CD Pipeline / Deploy to Test (push) Has been skipped
CI/CD Pipeline / Build Production Image (push) Failing after 14m21s
CI/CD Pipeline / Deploy to Production (push) Has been skipped
移除 --production 标志,确保 devDependencies(如 typescript)可用
后续可优化 release 阶段只包含生产依赖
2026-04-17 16:22:12 +08:00
525c433937 fix: 移除重复用户创建,使用镜像预置的 bun 用户
Some checks failed
CI/CD Pipeline / Code Quality (push) Successful in 22s
CI/CD Pipeline / Unit Tests (push) Successful in 15s
CI/CD Pipeline / Build Test Image (push) Has been skipped
CI/CD Pipeline / Deploy to Test (push) Has been skipped
CI/CD Pipeline / Build Production Image (push) Failing after 10s
CI/CD Pipeline / Deploy to Production (push) Has been skipped
- oven/bun:1.3 已包含 bun 用户,无需重复创建
- chown 使用 bun:bun 而非 bun:nodejs
2026-04-17 16:20:12 +08:00
f390e23ba7 fix: Dockerfile 兼容 Debian 基础镜像
Some checks failed
CI/CD Pipeline / Code Quality (push) Successful in 15s
CI/CD Pipeline / Unit Tests (push) Successful in 10s
CI/CD Pipeline / Build Test Image (push) Has been skipped
CI/CD Pipeline / Deploy to Test (push) Has been skipped
CI/CD Pipeline / Build Production Image (push) Failing after 10s
CI/CD Pipeline / Deploy to Production (push) Has been skipped
- addgroup/adduser → groupadd/useradd (Alpine → Debian)
- 安装 curl 用于健康检查
2026-04-17 16:17:44 +08:00
2d8b07845f fix: 更新 Dockerfile Bun 版本 1.1 → 1.3 以匹配本地版本
Some checks failed
CI/CD Pipeline / Code Quality (push) Successful in 16s
CI/CD Pipeline / Unit Tests (push) Successful in 10s
CI/CD Pipeline / Build Test Image (push) Has been skipped
CI/CD Pipeline / Deploy to Test (push) Has been skipped
CI/CD Pipeline / Build Production Image (push) Failing after 9s
CI/CD Pipeline / Deploy to Production (push) Has been skipped
本地使用 Bun 1.3.11 生成的 lockfile 与 Bun 1.1.45 不兼容
2026-04-17 16:11:03 +08:00
81ecf3999d fix: 修正 Dockerfile 中 lockfile 文件名
Some checks failed
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Code Quality (push) Has been cancelled
CI/CD Pipeline / Build Test Image (push) Has been cancelled
CI/CD Pipeline / Build Production Image (push) Has been cancelled
CI/CD Pipeline / Deploy to Test (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
bun.lockb → bun.lock(适配 Bun 1.1+ 文本格式)
2026-04-17 16:04:34 +08:00
e893755340 feat: 添加 CI/CD 部署方案(Gitea + Docker + 双分支工作流)
- Dockerfile: 多阶段构建,oven/bun 基础镜像,非 root 用户
- docker-compose.yml: 本地开发环境(API + MySQL + Drizzle Studio)
- docker-compose.prod.yml: 服务器部署(prod + test,Docker profiles)
- .gitea/workflows/deploy.yml: 双分支 CI/CD(develop→测试, main→生产)
- docs/ci-deployment-guide.md: 完整部署指南(Alibaba Cloud Linux 3)
- scripts/deploy.sh: 手动部署运维脚本
- .env.prod.example: 生产环境变量模板
- .dockerignore: 排除非构建文件
- .gitignore: 排除 .claude/ 目录
2026-04-16 12:44:14 +08:00