Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,905
Community Members
 
Community Events
168
Community Groups

Can't get Pipeline to deploy to Firebase

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

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>'

```

@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

Atlassian Community Events