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,
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:
name: Deploy dist folder to firebasee
script:
- pipe: atlassian/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"
}]
}]
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.