Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use Pipelines to deploy to specific site in Firebase Project with multiple sites?

Insoft RND
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 1, 2021 edited

My Setup

I have A Project in Firebase With Multiple sites ,

I have different React Projects corresponding to different user type (like Teachers , Student , Admin)

 

Objective 

I am tiring to use pipeline to deploy  to  a specific site in firebase, 

 

1 answer

1 accepted

2 votes
Answer accepted
Anish Paudel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2021

It turned out to be relatively easy 

Here's What I did to my bitbucket-pipelines.yml file

Not fix the indentation using the  validator 

 



step:
 nameDeploy dist folder to firebasee
 script: 
pipeatlassian/firebase-deploy:1.0.0 
variables: 
 
FIREBASE_TOKEN$FIREBASE_TOKEN 
 
PROJECT_ID'$FIREBASE_PROJECT'
   MESSAGE'Deploying '  
 
EXTRA_ARGS'--only hosting'      
         
MULTI_SITES_CONFIG> 
                   [{
    
   "TARGET": "your-target-name",
                     "RESOURCE": "your-site-id" 
                   },
                    ]
         DEBUG'true'




 

and  firebase.json 


{
"hosting": [{
"target": "your-target-name",
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [{
"source": "**",
"destination": "/index.html"
}]
}]
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events