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" }] }]}
It looks like you're new here. Sign in or register to get started.