Deploying to Firebase Hosting from GitHub - Firecasts

Firebase · 60K views · 2016 · 7:30

Open on YouTube

Cloud, DevOps & reliabilityWeb developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when asking or answering how to automate `firebase deploy` from a CI pipeline such as Travis.

Recommended by 1 people across 1 different months, 2016 to 2017.

What it is

A short Firebase Firecasts episode, presented by the Firebase team, showing how to set up continuous deployment of a site to Firebase Hosting from a GitHub repository. It walks through using the Firebase CLI with a CI service so pushes trigger a deploy.

What people said

Recommends petecarapetyan · 2017-02 · Stack Overflow · on “How can I automate "firebase deploy"?”

Here's a couple different approaches: Firebase's own David East on how to do it with Travis and GitHub [this video] I took an alternate approach, since my automation tool is written in java. firebase CLI installed in the bash shell, previous to launching my java binary. [deploy.sh] shell script runs "firebase deploy" command. java binary has internal code to run the [deploy.sh] script. Bottom line - no matter what your automation binary is written in, as long as it can shell out and run your [deploy.sh] script in the same shell that firebase is installed in, you should be good to go.

Cites jofftiquez · 2016-09 · Stack Overflow · on “Firebase hosting - make deployment faster?”

I am developing in angular 1.x and using firebase hosting at the same time. Firebase hosting deployment is very fast when you have a small static website. But in my case, my angular app requires a bunch of bower_components files, 40k files to be specific. I understand that firebase hosting only hosts static websites, and I have to include these files upon deployment. Yes I already used CDN links for most of the dependencies that I need, but those remaining non CDN dependencies are still too large. Is there a way to deploy in firebase hosting in a much faster way, like git url or something? Note I already tried travis [LINK] X firebase hosting [this video] approach but the problem is, travis only

Cites Ilja · 2016-10 · Stack Overflow · on “Triggering Firebase deploy after successful Semaphore CI process”

I am following the Firebase tutorial on Continuous Integration [this video] . They use travis in their example, my choice of CI is Semaphore Co [LINK] . I am stuck at firebase deploy --token $FIREBASE_TOKEN step, as I can't seem to find a way to trigger this in any sort of after success hook in Semaphore. They do have after job, but it is triggered on failed builds as well, due to this, I don't want to deploy using that step, I want to only deploy after all tests / builds pass.