It might be worth you using the firebase deploy pipe to simplify things: https://bitbucket.org/atlassian/firebase-deploy/src/master/README.md
that way you could have:
- step:
name: Deploy to production
deployment: production
script:
- pipe: atlassian/firebase-deploy:0.2.1
variables:
FIREBASE_TOKEN: $FIREBASE_TOKEN
PROJECT_ID: $FIREBASE_PROJECT
Define two variables in your settings for your Firebase repository: FIREBASE_TOKEN and PROJECT_ID (Firebase project name)
(here's an example repo if it helps? https://bitbucket.org/bitbucketpipelines/example-firebase-deploy/src/master/bitbucket-pipelines.yml)
Thanks Linette, this worked like a charm!
Just wanted to add that the "Build" step can fail if there are warnings present as "warnings are treated as errors". Silly oversight on my part, but that tripped me up for a little while.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a way to define what directory this pipe works on in a large mono repo?
Example: "/repo/frontend/website" instead of "/repo"
Also, in a multi deployment setup, this pipe errors as it is looking in repo variables, not environment variables. This causes issues because the deployment is tied to different Firebase projects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.