Skip to content

build: add one-click local deploy pipeline (#1197) - #1198

Open
jimbojw wants to merge 1 commit into
PAIR-code:mainfrom
jimbojw:1197-deploy-from-local
Open

build: add one-click local deploy pipeline (#1197)#1198
jimbojw wants to merge 1 commit into
PAIR-code:mainfrom
jimbojw:1197-deploy-from-local

Conversation

@jimbojw

@jimbojw jimbojw commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Local companion to cloudbuild.yaml: staged, ordered npm run deploy:* commands (rules → indexes → functions → frontend) driven by env vars (PROJECT_ID required, DRY_RUN, YES, AUTO_PROMOTE, FIREBASE_CONFIG_FILE), so collaborators can deploy bespoke local code to GCP without wiring up a Cloud Build ↔ GitHub connection.

  • npm orchestrates the pipeline; scripts/ holds per-surface helpers
  • real-by-default with a typed PROJECT_ID confirmation; DRY_RUN previews
  • frontend web config auto-fetched (or FIREBASE_CONFIG_FILE), validated, and reconciled against any existing firebase_config.ts
  • no local backups: the CI-style live-snapshot HTTP calls don't work with corp credentials, so rollback relies on Firebase version history + git
  • docs in DEPLOY.md, linked from README

Closes #1197

Local companion to cloudbuild.yaml: staged, ordered `npm run deploy:*`
commands (rules → indexes → functions → frontend) driven by env vars
(PROJECT_ID required, DRY_RUN, YES, AUTO_PROMOTE, FIREBASE_CONFIG_FILE),
so collaborators can deploy bespoke local code to GCP without wiring up a
Cloud Build ↔ GitHub connection.

- npm orchestrates the pipeline; scripts/ holds per-surface helpers
- real-by-default with a typed PROJECT_ID confirmation; DRY_RUN previews
- frontend web config auto-fetched (or FIREBASE_CONFIG_FILE), validated,
  and reconciled against any existing firebase_config.ts
- no local backups: the CI-style live-snapshot HTTP calls don't work with
  corp credentials, so rollback relies on Firebase version history + git
- docs in DEPLOY.md, linked from README

Closes PAIR-code#1197
@jimbojw
jimbojw requested review from cjqian and nthain July 23, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: One-click deploy from local

1 participant