Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
VITE_API_BASE_URL=https://be.starters.rayonstudios.com/api/v1
VITE_API_BASE_URL=https://rayon-gcp-express-psql-starter-dev-227506371134.us-east1.run.app/api/v1
# VITE_API_BASE_URL=http://localhost:3000/api/v1
VITE_ENV=dev
VITE_HCAPTCHA_SITE_KEY=cd86c190-7a30-4042-9468-018cd91ef63c
VITE_HCAPTCHA_SITE_KEY=cd86c190-7a30-4042-9468-018cd91ef63c
VITE_FIREBASE_AUTH_ENABLED=true
5 changes: 3 additions & 2 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VITE_API_BASE_URL=https://be.starters.rayonstudios.com/api
VITE_API_BASE_URL=https://be.starters.rayonstudios.com/api/v1
VITE_ENV=production
VITE_HCAPTCHA_SITE_KEY=cd86c190-7a30-4042-9468-018cd91ef63c
VITE_HCAPTCHA_SITE_KEY=cd86c190-7a30-4042-9468-018cd91ef63c
VITE_FIREBASE_AUTH_ENABLED=true
5 changes: 5 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VITE_API_BASE_URL=https://rayon-gcp-express-psql-starter-test-227506371134.us-east1.run.app/api/v1
# VITE_API_BASE_URL=http://localhost:3000/api/v1
VITE_ENV=test
VITE_HCAPTCHA_SITE_KEY=cd86c190-7a30-4042-9468-018cd91ef63c
VITE_FIREBASE_AUTH_ENABLED=true
14 changes: 5 additions & 9 deletions .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
"hosting": {
"prod": [
"rayon-gcp-starter"
]
}
},
"rayon-gcp-starter": {
"hosting": {
"dev": [
"rayon-gcp-starter"
],
"prod": [
"rayon-gcp-starter"
"test": [
"rayon-gcp-starter-test"
],
"dev": [
"rayon-gcp-starter-dev"
]
}
}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: yarn install --frozen-lockfile && npm run build:dev
- run: npm ci && npm run build:dev
env:
CI: false
VITE_FIREBASE_API_KEY: "${{ secrets.VITE_FIREBASE_API_KEY }}"

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.SECRETJSON_DEV }}"
firebaseServiceAccount: "${{ secrets.GCP_SA }}"
channelId: live
projectId: rayon-gcp-starter
target: dev
5 changes: 3 additions & 2 deletions .github/workflows/pr-preview-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: yarn install --frozen-lockfile && npm run build:dev
- run: npm ci && npm run build:dev
env:
CI: false
VITE_FIREBASE_API_KEY: "${{ secrets.VITE_FIREBASE_API_KEY }}"

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.SECRETJSON_DEV }}"
firebaseServiceAccount: "${{ secrets.GCP_SA }}"
projectId: rayon-gcp-starter
target: dev
5 changes: 3 additions & 2 deletions .github/workflows/pr-preview-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: yarn install --frozen-lockfile && npm run build:prod
- run: npm ci && npm run build:prod
env:
CI: false
VITE_FIREBASE_API_KEY: "${{ secrets.VITE_FIREBASE_API_KEY }}"

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.SECRETJSON_PROD }}"
firebaseServiceAccount: "${{ secrets.GCP_SA }}"
projectId: rayon-gcp-starter
target: prod
5 changes: 3 additions & 2 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ jobs:
steps:
- uses: actions/checkout@v3

- run: yarn install --frozen-lockfile && npm run build:dev
- run: npm ci && npm run build:prod
env:
CI: false
VITE_FIREBASE_API_KEY: "${{ secrets.VITE_FIREBASE_API_KEY }}"

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.SECRETJSON_PROD }}"
firebaseServiceAccount: "${{ secrets.GCP_SA }}"
channelId: live
projectId: rayon-gcp-starter
target: prod
26 changes: 26 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to Firebase Hosting - Test
"on":
push:
branches:
- test
workflow_dispatch:

jobs:
build_and_deploy:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: npm ci && npm run build:test
env:
CI: false
VITE_FIREBASE_API_KEY: "${{ secrets.VITE_FIREBASE_API_KEY }}"

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.GCP_SA }}"
channelId: live
projectId: rayon-gcp-starter
target: test
Loading