Enable beta auto-deploy on master; manual prod button (#26) #30

Merged
westfarn merged 1 commits from feature/26-beta-deploys into master 2026-07-27 08:35:08 -07:00
Owner

Summary

Closes #26.

  • Replace auto-prod deploy.yml with deploy-beta.yml (push to master → tests → --env beta) and deploy-prod.yml (workflow_dispatch only → --env prod), matching dta_service / chat_web_app
  • Default ALLOWED_HOSTS / CORS_ALLOWED_ORIGINS include beta API + SPA hosts so beta frontend (and Tianji-instrumented pages) can call the API
  • Expand .env.prod.example beta block (CORS, CSRF, OAuth callbacks, FRONTEND_BASE_URL, Tianji note)
  • Harden validate-env.sh for beta secrets; README documents beta auto / prod button

Tianji

Backend does not load tracker.js. FE already owns wiring (chat_web_app#35, closed).

  • Beta SPA origin: https://beta.chat.aimloperations.com
  • Beta Tianji website ID (FE .env.beta): cms38bw671mf9n5jjw3xp1j3q

Coordination

Test plan

  • PR CI / unit tests green
  • Merge to master triggers Deploy Beta only (not prod)
  • Manual Deploy Prod workflow_dispatch still deploys --env prod
  • After infra#7: beta container healthy on 8013 with chat_backend_beta
  • Beta hosts / CSRF / CORS allow https://beta.chat.aimloperations.com
## Summary Closes #26. - Replace auto-prod `deploy.yml` with `deploy-beta.yml` (push to `master` → tests → `--env beta`) and `deploy-prod.yml` (`workflow_dispatch` only → `--env prod`), matching `dta_service` / `chat_web_app` - Default `ALLOWED_HOSTS` / `CORS_ALLOWED_ORIGINS` include beta API + SPA hosts so beta frontend (and Tianji-instrumented pages) can call the API - Expand `.env.prod.example` beta block (CORS, CSRF, OAuth callbacks, `FRONTEND_BASE_URL`, Tianji note) - Harden `validate-env.sh` for beta secrets; README documents beta auto / prod button ## Tianji Backend does not load `tracker.js`. FE already owns wiring (`chat_web_app#35`, closed). - Beta SPA origin: `https://beta.chat.aimloperations.com` - Beta Tianji website ID (FE `.env.beta`): `cms38bw671mf9n5jjw3xp1j3q` ## Coordination - Infra: [server-infra#7](https://git.aimloperations.com/ai_ml_operations/server-infra/issues/7) (`host_apps` beta `:8013`, `chat_backend_beta` DB, secret, NPM) - FE companion: [chat_web_app#35](https://git.aimloperations.com/ai_ml_operations/chat_web_app/issues/35) ## Test plan - [ ] PR CI / unit tests green - [ ] Merge to `master` triggers **Deploy Beta** only (not prod) - [ ] Manual **Deploy Prod** `workflow_dispatch` still deploys `--env prod` - [ ] After infra#7: beta container healthy on **8013** with `chat_backend_beta` - [ ] Beta hosts / CSRF / CORS allow `https://beta.chat.aimloperations.com`
westfarn added 1 commit 2026-07-27 08:26:41 -07:00
Enable beta auto-deploy on master; prod via manual button
CI / test (pull_request) Successful in 10s
Unit Tests / test (pull_request) Successful in 9s
02cee6c220
Closes #26. Split deploy.yml into deploy-beta (push→master) and
deploy-prod (workflow_dispatch), wire beta hosts/CORS defaults, and
document beta secret + Tianji coordination with chat_web_app.
westfarn merged commit 5d5b448868 into master 2026-07-27 08:35:08 -07:00
westfarn deleted branch feature/26-beta-deploys 2026-07-27 08:35:08 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_backend#30