I started deploying to firebase from bitbucket pipelines with the atlassian pipe. However i did not see a way to set environment configuration as often necessary:
Did I miss the docs or do I simply have to use bare bones firebase-tools?
Hi @tobias_eisenschenk ,
Currently, the firebase-deploy pipe doesn't have a way to set environment configuration, but we will consider this option in the upcoming pipe releases.
Thank you for the feedback. We'll notify you about updates.
My use case is to deploy firebase cloud-functions along with environment specific configuration (firebase config).
Something like this:
- npm --prefix ./functions install
- npm install -g firebase-tools
- firebase use $PROJECT_ID
- firebase functions:config:set environment.database_url=$ENVIRONMENT_DATABASE_URL
- pipe: atlassian/firebase-deploy:0.3.4
variables: FIREBASE_TOKEN: $FIREBASE_TOKEN PROJECT_ID: $PROJECT_ID MESSAGE: "Deploying $BITBUCKET_COMMIT (CI/CD)" EXTRA_ARGS: "--non-interactive --only functions:$FUNCTION_NAME"
As you can see I started using the atlassian pipe, but then had to use the firebase-tools cli as well.
@tobias_eisenschenk I came with the idea to set the env in linux:
- export PROD=false
- pipe: atlassian/firebase-deploy:0.3.8
And then to get it by using node's method:
Actually it didnt work in my code. But probably you will make it.
We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events