183 Commits

Author SHA1 Message Date
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 d31c62d4e2 fix(deploy): align deployment with split infrastructure 2026-06-20 19:02:48 +08:00
Xiaoxia AI dd91c87ef0 perf: 优化 CI/CD 镜像,从 2.26GB 降到 179MB
- 替换 catthehacker/ubuntu:act-latest (2.26GB) 为 python:3.12-slim (179MB)
- 减少下载时间 90%+
- 加快 CI/CD 构建速度
2026-06-20 16:21:49 +08:00
Xiaoxia AI 44398c2ce7 fix: support develop branch deployment and fix React Query v5 compatibility 2026-06-20 12:01:51 +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 e22a9ba2e3 fix(ci): use --break-system-packages for pip install
- Fix externally-managed-environment error
- Ubuntu 24.04 requires this flag for global pip installs
2026-06-18 16:36:14 +08:00
Xiaoxia AI a63de0dae0 fix(ci): use catthehacker/ubuntu:act-latest container
- Use pre-built container with git and Python
- Avoid timeout from apt-get install
- This container is specifically built for Gitea Actions/act
2026-06-18 16:31:21 +08:00
Xiaoxia AI 87aab4d16b fix(ci): simplify CI pipeline - install git manually
- Use runs-on: ubuntu-latest instead of container
- Install git before checkout
- Install Python manually
- Simplify to core functionality only
2026-06-18 16:23:48 +08:00
Xiaoxia AI bac10931b7 fix(ci): use container image instead of setup-python action
- Use python:3.12-slim container directly
- Remove setup-python action (not compatible with Gitea Actions)
- Simplify build pipeline
- Add error handling for missing requirements.txt
2026-06-18 16:20:42 +08:00
Xiaoxia AI 8b39848116 fix(ci): use custom checkout to fix repository URL issue
- Replace actions/checkout@v4 with manual git clone
- Use correct Gitea URL with /git/ path
- This works around Gitea Actions URL bug
2026-06-18 16:02:00 +08:00
Xiaoxia AI f1ff6af990 fix(ci): fix job names and simplify pipeline
- Change job names to valid format (no spaces)
- Simplify backend build (skip Docker for now)
- Keep frontend build with npm
- All jobs now have proper runs-on configuration
2026-06-18 15:56:03 +08:00
Xiaoxia AI 71a57001e0 ci: add CI/CD pipeline configuration
- Add Gitea Actions workflow
- Stage 1: Code quality check (black, isort, mypy, flake8, bandit)
- Stage 2: Automated testing (unit + integration tests)
- Stage 3: Build backend Docker images
- Stage 4: Build frontend static assets
- Stage 5: Deploy to staging (develop branch)
- Stage 6: Deploy to production (main branch)

Also add Git workflow documentation.
2026-06-18 15:51:27 +08:00
Xiaoxia AI 9fe0614d43 feat: add deployment configs, systemd service, and tracker init scripts 2026-06-16 22:01:24 +08:00
Xiaoxia AI 7f65092495 fix: pass commit metadata into deploy builds 2026-06-15 20:32:02 +08:00
Xiaoxia AI 7f1bf91737 fix: run deploy against host via docker cli 2026-06-15 20:29:35 +08:00
Xiaoxia AI 740ad6034d fix: use self-contained workflow images 2026-06-15 20:27:12 +08:00
Xiaoxia AI 5177a4b653 fix: stream deploy sources into host workspace 2026-06-15 20:20:03 +08:00
Xiaoxia AI 2a994a6e5d fix: align workflows with runner containers 2026-06-15 20:13:12 +08:00
Xiaoxia AI 10acdbb960 fix: stabilize gitea workflows 2026-06-15 20:09:59 +08:00
Xiaoxia AI d488d0d488 fix: use manual checkout for gitea actions 2026-06-15 20:02:04 +08:00
Xiaoxia AI 56aeafcb53 fix: set gitea checkout base url 2026-06-15 19:59:47 +08:00
Xiaoxia AI f69e649c7f chore: wire real host-based gitea deploy 2026-06-15 19:58:11 +08:00
Xiaoxia AI 4475677763 chore: wire deployment to environment-based configuration 2026-06-15 18:40:56 +08:00
Xiaoxia AI 3b8ff2ddae feat: implement real deployment script
Tests / test (push) Failing after 30s
Tests / lint (push) Failing after 30s
2026-06-15 18:12:09 +08:00
Xiaoxia AI cb2364a363 feat: add CI/CD pipeline with Gitea Actions
Deploy / deploy-staging (push) Failing after 30s
Deploy / deploy-production (push) Has been skipped
Tests / test (push) Failing after 30s
Tests / lint (push) Failing after 30s
- .gitea/workflows/tests.yml: automated testing + linting on push/PR
- .gitea/workflows/deploy.yml: deployment workflow (placeholder)
- docs/CI-CD.md: CI/CD configuration guide
- requirements-dev.txt: development dependencies (pytest, black, flake8, mypy)
- test job: run pytest with coverage report
- lint job: black + flake8 + mypy code quality checks
2026-06-15 16:53:09 +08:00