Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can't get Pipeline to deploy to Firebase

jamesferreira August 21, 2022

Hi, I would like to use Bitbucket to deploy React App to my Firebase project. With git the actions are set up for you but I have been round and round with Bitbucket and can't find the correct combination. 

The error I see is:

INFO: Starting deployment of the project to Firebase.
Error: Not in a Firebase app directory (could not locate firebase.json)

I've put firebase.json in every directory and no luck. What can I do?

1 answer

1 vote
jamesferreira August 21, 2022

For the next person who runs into this. 

Here is the Pipeline that worked:

```

image: node:16

# Workflow Configuration

pipelines:

  branches:
    master:
      - step:
          name: Build and Test
          caches:
            - node
          script:
            - npm install && npm run build

          artifacts:
            - build/**
      - step:
          name: Security Scan
          script:
            - pipe: atlassian/git-secrets-scan:0.5.1
      - step:
          name: Deploy to Firebase
          deployment: Production
          script:
            # sync your files to Firebase
            - pipe: atlassian/firebase-deploy:2.0.0
              variables:
                KEY_FILE: '<base64 your gcp_creds.json>'
                FIREBASE_TOKEN: 'your token from running command firebase login:ci'
                PROJECT_ID: '<your project name>'

```

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 26, 2022

@jamesferreira  hi. Good to know you solved your issue.

Additionally to your response i will add link to example of firebase-deploy

Regards, Igor

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events