Browse documentation

Firebase Backend Deployments

Configure Firebase as a first-class application type in Applications. This is independent from a server release or either mobile build target. A repository may contain all three.

  1. Register a Firebase application, choose an authorized source application/ref, set Project ID and Source root. Choose an image from the repository or upload one as supported.
  2. In Application configuration set the deployment service account, build region, staging bucket and explicit deployment mode. The target project needs authorized Cloud Build, storage and Firebase resource permissions. Use the service's attached identity and least privilege, not downloaded service account keys.
  3. Commit the backend VERSION, firebase.json and cloudbuild-firebase.yaml under the source root, with approved additional committed paths if needed. The recipe validates/tests before selectively deploying managed resources (for example Functions, Firestore rules and indexes). The function runtime is managed by Firebase, not a separate container to overwrite.
  4. Check Git. The single Build and deploy target appears only when the first or newer backend version is available and no deployment is pending. Build and deploy archives the exact checked commit and submits regional Cloud Build in the configured project.
  5. Follow the status and log link. Authenticated Cloud Build/Pub/Sub events and status checks reconcile the outcome. Pending or uncertain responses must be reconciled before repeating an operation. A failed deployment may have partially changed resources; inspect before retrying.

Keep projects/environments isolated and select deployment mode deliberately. Configure identities, source staging lifecycle and notification routing before the first build. Versioned history records deployments; retention is not a rollback mechanism. Deploy a backward-compatible backend before dependent mobile releases, then verify the client and service together.

For optional online gameplay, continue to Connected Games and Server Registration. See Security and Release History.

Guide home