Skip to content

Commit

Permalink
Merge pull request #12 from ymaheshwari1/add/firebase_config
Browse files Browse the repository at this point in the history
Implemented: support for firebase deployment on merge
  • Loading branch information
ymaheshwari1 authored Jan 11, 2024
2 parents 6e8217c + 6249738 commit 7c03c4b
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"projects": {
"default": "hotwax-digital-commerce",
"production": "digital-commerce-71eb8"
},
"targets": {
"hotwax-digital-commerce": {
"hosting": {
"dev": [
"order-routing-dev"
],
"uat": [
"order-routing-uat"
]
}
},
"digital-commerce-71eb8": {
"hosting": {
"prod": [
"order-routing"
]
}
}
}
}
16 changes: 16 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
jobs:
call-workflow-in-another-repo:
uses: hotwax/dxp-components/.github/workflows/common-firebase-hosting-merge.yml@main
with:
config-path: .github/labeler.yml
secrets:
envPAT: ${{ secrets.envPAT }}
HOTWAX_PUBLIC_SECRET: ${{ secrets.HOTWAX_PUBLIC_SECRET }}
45 changes: 45 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"hosting": [
{
"target": "prod",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ]

},
{
"target": "dev",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ]

},
{
"target": "uat",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [ {
"source": "**",
"destination": "/index.html"
} ]
}
]
}

0 comments on commit 7c03c4b

Please sign in to comment.