Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I automate "firebase deploy"?

Is there any way I can automate my "firebase deploy" pushes to Firebase Hosting using a script? I can't seem to figure out how to do this.

Thanks.

like image 765
SH10151 Avatar asked Oct 16 '25 20:10

SH10151


1 Answers

Here's a couple different approaches:

Firebase's own David East on how to do it with Travis and GitHub https://www.youtube.com/watch?v=QLVzozWDYAs

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.

like image 128
petecarapetyan Avatar answered Oct 19 '25 13:10

petecarapetyan