Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2.8 KiB
Proposal
Why
Co-Lite goes live on 2027-01-15 on the team's Kubernetes cluster. Phase 1 runs end to end only on a developer machine today: nothing builds or publishes images, and there is no database package or deployment handover. Another person deploys to the cluster, so this change delivers what they need to do it. It is change 5 of the phase 1 design (docs/superpowers/specs/2026-11-26-co-lite-foundation-and-leads-design.md, Deployment), cut down to CI, images and handover.
What Changes
-
CI (
.gitea/workflows/ci.yml): on every push tomain, build and test every module, then build and push nine images togitea.containerverse.dev:- the eight Java services:
api-gateway,mobile-api,service-auth,service-system,service-counter,service-member,service-log,service-email; - the admin portal.
Each image is tagged with the commit SHA and
latest. A failing test or build pushes nothing. There is no rollout step. - the eight Java services:
-
Dockerfiles: the existing ones are checked and fixed for production. Images carry no secrets or environment-specific config; everything comes from environment variables or mounted files at runtime.
-
Production database package in this change's
sql/folder, for the DBA. It reuseslocal/seed/00to02, plus a production copy of03-colite.sqlwithout the dev admin, plus a first-admin template: the DBA puts in a bcrypt hash they generate, and that admin must change the password at first sign-in. -
Deployment handover (
docs/deployment.md), covering:- for each image: port, health probes and every environment variable;
- Kubernetes Secret templates with base64 placeholders;
- the mounted files (gateway
appkeys.json, Google Pub/Sub key); - the Pub/Sub topics to create;
- the Traefik host
co-lite.containerverse.dev, routed to the admin portal; - the order to set things up.
Not in this change:
- Kubernetes manifests and the rollout (done by the deployer).
- SMTP: forgot-password emails will not send until it is configured later.
- The customer portal image: phase 1 does not use it.
Capabilities
New Capabilities
release-packaging: how releases are built, tested and published as images, and what the production database package must and must not contain.
Modified Capabilities
None.
Impact
- New
.gitea/workflows/ci.yml, publishing togitea.containerverse.dev/solvway/co-lite-<module>. It needs thePACKAGE_USERandPACKAGE_RW_KEYsecrets (registry login) and an Actions runner. Both are expected from thesolvwayorg once the repo is transferred there, which happens before deployment. - Dockerfiles of the nine modules (fixes only where production needs them).
- New
docs/deployment.md. - New SQL under
openspec/changes/add-release-ci-packaging/sql/. - No application code, API or schema change.