Firebase CI setup

Set up Firebase for CI/CD environments

Thu, 30 Jun 2022

This is going to be a simple walkthrough of deploying a firebase site via cmd on a build machine of your choice. This post is going to assume that you already have a dev ops solution set up such as Azure Dev Ops or Jenkins.

  1. Install firebase-tools on your host machine if you did not already. npm install -g firebase-tools
  2. Log into firebase firebase login
  3. Get a deployment token. Do note, these tokens bind to the google account you are signed into on and will give access to all firebase projects that the google account can access firebase login:ci
  4. Save that token as an env variable on your build machine
  5. To deploy all of your firebase assets. FIREBASETOKEN = the variable from step 4
    `firebase deploy —token $(FIREBASE
    TOKEN)`

Further reading - Firebase CLI Reference

Buy Me A CoffeeDigitalOcean Referral Badge
Loading...
Edward Beazer

Edward Beazer - I just like to build shit. Sometimes I get stuck for hours, even days while trying to figure out how to solve an issue or implement a new feature. Hope my tips and tutorials can save you some time.

DigitalOcean Referral Badge