It's quite easy and the same process applies to all Firebase features with minor changes.
In order to deploy you'll need a deployment token (I named it FIREBASE_TOKEN
) and it can be
acquired by using the following command
firebase login:ci
Add it to your pipeline's environment variables or to your team's environment variables if you want to use it among multiple repositories.
You can define the function to get deployed using --only functions:addMessage
as defined on the
Firebase documentation.
The boring part is that you should find out which function got changed to deploy just it, what you
can do using git
.
https://github.com/firebase/firebase-tools#using-with-ci-systems
https://firebase.google.com/docs/functions/manage-functions#set_nodejs_version
Hello @alexander0205,
You might want to have a look at the
firebase use
command. It sets the default project to be used. You'll need to add a line invoking it before thefirebase deploy
on at line 25.https://github.com/firebase/firebase-tools#configuration-commands