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.
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
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