Commit Graph

27 Commits

Author SHA1 Message Date
b7746c3004 Changeset 0.37.14 (#226)
Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
2026-03-23 16:47:48 +00:00
128cbb8174 Changeset 0.28.8 (#194) 2026-03-15 23:43:36 +00:00
9b9e2eb756 Changeset 0.28.0.10 (#182) 2026-03-13 09:29:04 +00:00
2fc620e1ac Changeset 0.23.0 (#153) 2026-03-05 22:40:26 +00:00
d8e0664fa3 Changeset 0.22.6 (#148) 2026-03-03 13:12:13 +00:00
09c7281552 Changeset 0.21.1.1 (#87) 2026-03-01 16:40:26 +00:00
817062e5fc Changeset 0.20.0 (#85) 2026-03-01 12:40:15 +00:00
e4a943b03e Changeset 0.18.0 (#79) 2026-02-28 18:24:19 +00:00
a008dac488 Changeset 0.17.2 (#77) 2026-02-28 11:58:27 +00:00
856dc9b0ac Changeset 0.17.1 (#76) 2026-02-28 01:40:31 +00:00
e663104575 Changeset 0.15.0 patches (#72) 2026-02-26 23:44:44 +00:00
e2149e249d Changeset 0.14.0 (#67) 2026-02-26 15:59:26 +00:00
88216ec4cb Changeset 0.12.0 (#63) 2026-02-25 21:38:49 +00:00
c9d8e9457e Changeset 0.11.0 (#62) 2026-02-25 13:29:15 +00:00
4061e4a145 Changeset 0.10.2 (#58) 2026-02-24 20:29:08 +00:00
5e416d3726 Changeset 0.9.4 (#54) 2026-02-24 10:44:12 +00:00
ac7c7c7d59 Changeset 0.9.2 (#52) 2026-02-23 19:31:33 +00:00
8264aa6016 Changeset 0.9.0 (#50) 2026-02-23 01:57:28 +00:00
416e5439ea Changeset 0.7.2 (#40) 2026-02-21 19:03:19 +00:00
a95e246cd7 Changeset 0.7.0 (#37) 2026-02-21 12:43:33 +00:00
925b70f98c Changeset 0.6.0 (#36) 2026-02-20 22:24:47 +00:00
30d0c11219 Changeset 0.5.0 (#35) 2026-02-19 15:03:20 +00:00
d9ab162dfb Completions api (#8) (#29) 2026-02-16 17:00:11 +00:00
d83217504c Ci fixes unified build (#28) 2026-02-16 14:15:46 +00:00
e69b5308f5 Ci cleanup (#27) 2026-02-16 12:16:00 +00:00
c75f976a2d [BACKEND] Initialize Go backend structure and dependencies (#23) 2026-02-15 22:50:06 +00:00
7157877f0b feat: Setup CI/CD infrastructure with Go, Frontend, and Docker workflows (#22)
## Summary

This PR sets up the complete CI/CD infrastructure for the Chat Switchboard project, implementing automated testing, linting, building, and Docker containerization.

## Changes

### CI/CD Workflows

1. **`.gitea/workflows/backend.yml`** - Backend CI pipeline
   - Automated Go module initialization
   - Test execution with coverage reporting
   - Code linting with golangci-lint
   - Binary compilation with version tags
   - Artifact upload for debugging

2. **`.gitea/workflows/frontend.yml`** - Frontend CI pipeline
   - JavaScript linting with ESLint
   - CSS validation with Prettier
   - Standalone HTML build via build.sh
   - HTML structure validation
   - Build artifact management

3. **`.gitea/workflows/docker.yml`** - Docker CI pipeline
   - Backend container building and testing
   - Frontend container building
   - Automatic image tagging on tags/branches
   - Registry push on main branch
   - Multi-arch manifest creation

### Docker Configuration

- `server/Dockerfile` - Multi-stage Go backend container with health checks
- `Dockerfile.frontend` - Nginx frontend container with gzip compression
- `nginx.conf` - Optimized nginx config with security headers

### Dependencies

- `server/go.mod` - Initialized Go module with Gin and godotenv

### Documentation

- `docs/CICD_SETUP.md` - Comprehensive CI/CD documentation

## Features

-  Auto-trigger on push/PR to main/develop
-  Test coverage reporting
-  Code quality checks (golangci-lint, ESLint)
-  Build artifact management (7-day retention)
-  Semantic versioning support (v* tags)
-  Multi-stage Docker builds
-  Container health checks
-  Security headers in nginx
-  Gzip compression
-  Non-root container execution

## Testing

The workflows will automatically run on this PR. Once merged, all future PRs and pushes to main/develop will trigger the appropriate CI checks.

## Acceptance Criteria

-  All PRs run CI checks
-  Docker images auto-build on tags
-  Standalone build generates on each commit

## Next Steps (Manual)

1. Merge this PR to `main`
2. Create `develop` branch: `git checkout main && git checkout -b develop && git push origin develop`
3. Configure branch protection in Gitea (Settings → Branches → Add protection rule for main/develop)
4. Test with a sample PR to verify CI runs

## Breaking Changes

None. This is purely infrastructure setup with no impact on existing functionality.

Reviewed-on: xcaliber/chat-switchboard#22
2026-02-04 18:17:07 +00:00