20 Commits

Author SHA1 Message Date
xiaoxia a6e85092ce fix: 统一 ENABLE_REDIS_SESSIONS 命名,修复登录因 AttributeError 导致 500 2026-06-27 17:05:48 +08:00
CI Bot 60adbf95ce chore: remove redundant .github/workflows (using Gitea Actions) 2026-06-27 00:41:09 +08:00
Deploy Agent 78e1af1054 feat: 标准化部署流程和文档化
- 添加 docs/deployment.md 完整部署文档,包含:
  - 环境要求
  - 首次部署流程
  - 版本更新流程
  - 回滚流程
  - 常见问题排查
  - 环境变量说明

- 添加标准化部署脚本:
  - scripts/deploy_production.sh: 生产环境部署脚本
  - scripts/deploy_staging.sh: 预发布环境部署脚本
  - scripts/rollback.sh: 回滚脚本(支持交互式和命令行模式)

- 完善 infra/docker/compose.yml:
  - 添加详细注释说明
  - 添加资源限制建议(注释)
  - 记录 web volume 挂载的注意事项(避免 403 问题)

- 添加 .github/workflows/release.yml:
  - 完整的发布流程
  - 构建所有三个镜像(api、worker、web)
  - 自动部署到生产环境
  - E2E 测试和 GitHub Release 创建
2026-06-27 00:09:46 +08:00
Xiaoxia AI 14e3cde119 chore(release): initialize separated production env 2026-06-21 14:24:23 +08:00
Xiaoxia AI 2a9585054c chore(release): finalize production readiness gates 2026-06-21 13:53:13 +08:00
Xiaoxia AI 6d68c28860 chore(release): validate production env readiness 2026-06-21 12:34:51 +08:00
Xiaoxia AI 0f7cc8f12a ci: detect sqlalchemy schema drift 2026-06-21 08:14:25 +08:00
Xiaoxia AI 2ed2308b9f ci: validate alembic migration chain 2026-06-21 07:49:23 +08:00
Xiaoxia AI 3e2b579e03 ci: run real quality gates 2026-06-21 00:39:02 +08:00
Xiaoxia AI 4dbdb0f853 chore(ci): use prebuilt python validation image 2026-06-20 21:05:10 +08:00
Xiaoxia AI f1ba8ba6af fix(ci): checkout without git in slim runner image 2026-06-20 19:03:52 +08:00
Xiaoxia AI 9385a9ee1e fix(ci): stabilize validation workflow 2026-06-19 07:22:17 +08:00
Xiaoxia AI 3582868456 fix(ci): avoid needs scheduling blockage on gitea 2026-06-19 06:53:05 +08:00
Xiaoxia AI 2b4a94ac95 fix(ci): align workflow triggers with branch policy 2026-06-19 06:41:20 +08:00
Xiaoxia AI c082f216a9 fix(ci): isolate quality toolchain from runtime dependencies 2026-06-19 03:33:04 +08:00
Xiaoxia AI 9c3fb6d4ff chore(ci): unify dev dependencies via requirements-dev 2026-06-18 17:26:40 +08:00
Xiaoxia AI 3760dcfc7e fix(ci): force official pypi in venv installs 2026-06-18 16:50:33 +08:00
Xiaoxia AI fdee6b71e1 fix(ci): use apt packages for python tooling 2026-06-18 16:46:57 +08:00
Xiaoxia AI 5e0b01b3f6 fix(ci): unify workflows and use venv for python tools 2026-06-18 16:42:55 +08:00
Xiaoxia AI 5269e80d4c ci: add comprehensive CI/CD pipelines
GitHub Actions workflows:
1. CI/CD Pipeline (ci-cd.yml)
   - Automated testing (Python 3.11, 3.12)
   - Code linting (black, isort, flake8)
   - Docker image build
   - Staging/Production deployment
   - Code coverage reporting

2. Security Scan (security.yml)
   - Dependency vulnerability check (safety)
   - Security linting (bandit)
   - Weekly scheduled scans
   - Dependency review for PRs

3. Release (release.yml)
   - Automated release creation
   - Docker image build and push
   - Semantic versioning tags

Features:
-  Multi-Python version testing
-  Pip package caching
-  Code coverage with Codecov
-  Security scanning
-  Automated deployments
-  Docker Hub integration

Phase 4 Tasks 61-62 completed (88.2% → 91.2%)!
2026-06-17 09:15:25 +08:00