Commit Graph

4 Commits

Author SHA1 Message Date
0ca3945061 fix(api): resolve Docker startup failures (secrets, Redis, Prisma)
- Pass BETTER_AUTH_SECRET through all 6 docker-compose files to API container
- Fix BullModule to parse VALKEY_URL instead of VALKEY_HOST/VALKEY_PORT,
  matching all other Redis consumers in the codebase
- Migrate Prisma encryption from removed $use() middleware to $extends()
  client extensions (Prisma 6.x compatibility), keeping extends PrismaClient
  pattern with only account and llmProviderInstance getters overridden

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 11:04:04 -06:00
Jason Woltje
e9392e719c fix(ci): gate Docker builds on all quality checks and fix prod image names
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Build step now depends on lint, typecheck, test, and security-audit so
Docker images cannot be pushed when quality gates fail. Also corrects
docker-compose.prod.yml image names to match pipeline (stack-api, stack-web,
stack-postgres) and replaces hardcoded :latest with ${IMAGE_TAG:-latest}.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 12:36:38 -06:00
Jason Woltje
bb144a7d1c feat(infra): Migrate from Harbor to Gitea Packages registry
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/pr/woodpecker Pipeline failed
BREAKING CHANGE: Container registry changed from Harbor to Gitea Packages

Changes:
- Update .woodpecker.yml to push to git.mosaicstack.dev instead of reg.mosaicstack.dev
- Change secret names: harbor_username/harbor_password → gitea_username/gitea_token
- Update docker-compose.prod.yml image references
- Update all three images: api, web, postgres

Registry Migration:
- Old: reg.mosaicstack.dev (Harbor)
- New: git.mosaicstack.dev (Gitea Packages)
- Old: reg.diversecanvas.com (Harbor)
- New: git.mosaicstack.dev (Gitea Packages)

Manual Steps Required:
1. Create Gitea personal access token with 'read:package' and 'write:package' scopes
2. Add Woodpecker secrets:
   - gitea_username: Your Gitea username
   - gitea_token: Personal access token from step 1
3. Test build pipeline
4. Delete old Harbor secrets after validation

Related: ADR-001 in jarvis-brain
See: jarvis-brain/docs/migrations/harbor-to-gitea-packages.md
2026-02-03 16:20:28 -06:00
4b943fb997 feat: Add Docker build & push to Woodpecker CI pipeline
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
- Add docker-build-api, docker-build-web, docker-build-postgres steps
- Images pushed to reg.diversecanvas.com/mosaic/* on main/develop
- Create docker-compose.prod.yml for production deployments
- Add .env.prod.example with production configuration

Requires Harbor secrets in Woodpecker:
- harbor_username
- harbor_password

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 01:50:02 -06:00