Commit Graph

6 Commits

Author SHA1 Message Date
Andrés Eduardo García Márquez e2fdea8f9e ci: remove checkout action, use passwordless sudo, simplify workflow
- No checkout needed (code pulled via git on K3s server)
- Use passwordless sudo on K3s server
- Simplified smoke tests to single step
- Reduced workflow complexity
2026-01-09 07:51:24 -05:00
Andrés Eduardo García Márquez bf91caf487 ci: run tests and build on K3s server to avoid runner memory limits
Strategy change:
- Tests run directly on K3s server via SSH (has dotnet installed)
- Docker build/import also on K3s server
- Runner only handles SSH connection and smoke tests (lightweight)
- Smoke tests run from runner (just curl commands)
- Auto-rollback if smoke tests fail

This avoids OOMKilled issues in the runner container.
2026-01-09 07:47:54 -05:00
Andrés Eduardo García Márquez be87cd3801 ci: optimize pipeline with .NET image, smoke tests, and auto-rollback
Changes:
- Runner now uses mcr.microsoft.com/dotnet/sdk:9.0 image
- Simplified test job (build + unit tests only)
- Deploy uses git pull instead of rsync for faster updates
- Added smoke tests in production:
  - Health check API
  - Health check Frontend
  - GraphQL endpoint validation
  - Database connectivity check
  - Subjects query test
- Auto-rollback if smoke tests fail

Flow: test -> deploy -> smoke-tests -> (rollback on failure)
2026-01-09 07:35:58 -05:00
Andrés Eduardo García Márquez d8a01f904d ci: add tests job before deploy, fix namespace to academia
- Add test job that runs Domain, Application, and Integration tests
- Deploy job now depends on test job (needs: test)
- Fix namespace from student-enrollment to academia
- Update sync path from student-enrollment to academia
- Always apply kustomize before rollout restart
2026-01-09 07:08:21 -05:00
Andrés Eduardo García Márquez c15702746a ci: optimize deployment workflow for k3s
- Single job instead of 3 (no artifact overhead)
- Build directly on k3s node (avoids image transfer)
- Parallel Docker builds with BuildKit
- Auto-create namespace if missing
- Automatic rollback on failure
- Health check via domain
2026-01-08 13:34:38 -05:00
Andrés Eduardo García Márquez a98862add8 feat: add CI/CD pipeline, password recovery, and QA improvements
- Add Gitea Actions workflow for automated k3s deployment
- Implement password recovery with recovery codes (no email needed)
- Fix unenroll mutation (missing studentId parameter)
- Fix dashboard handling for expired sessions
- Add optimized Docker builds with caching
- Add k3s all-in-one deployment manifest
- Add QA test report and recommendations
2026-01-08 10:49:32 -05:00