Skip to content

Commit

Permalink
update env variables with FIREBASE_CONFIG variable
Browse files Browse the repository at this point in the history
  • Loading branch information
arnard76 committed Jun 23, 2024
1 parent 844f8b7 commit bfe5381
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/backend-dev-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
echo GOOGLE_RECAPTCHA_SECRET_KEY=${{ secrets.GOOGLE_RECAPTCHA_SECRET_KEY }} >> .env
echo AWS_COGNITO_CLIENT_ID=${{ secrets.AWS_COGNITO_CLIENT_ID_DEV }} >> .env
echo AWS_COGNITO_USERPOOL_ID=${{ secrets.AWS_COGNITO_USERPOOL_ID_DEV }} >> .env
echo FIREBASE_CONFIG=${{ secrets.FIREBASE_CONFIG_DEV }} >> .env
echo AWS_ACCESS_KEY_ID="${{ secrets.AWS_ACCESS_KEY_ID }}" >> .env
echo AWS_SECRET_ACCESS_KEY="${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> .env
echo AWS_REGION=${{ secrets.AWS_REGION }} >> .env
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
echo GOOGLE_RECAPTCHA_SECRET_KEY=${{ secrets.GOOGLE_RECAPTCHA_SECRET_KEY }} >> .env
echo AWS_COGNITO_CLIENT_ID=${{ secrets.AWS_COGNITO_CLIENT_ID_DEV }} >> .env
echo AWS_COGNITO_USERPOOL_ID=${{ secrets.AWS_COGNITO_USERPOOL_ID_DEV }} >> .env
echo FIREBASE_CONFIG=${{ secrets.FIREBASE_CONFIG_DEV }} >> .env
echo AWS_ACCESS_KEY_ID="${{ secrets.AWS_ACCESS_KEY_ID }}" >> .env
echo AWS_SECRET_ACCESS_KEY="${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> .env
echo AWS_REGION=${{ secrets.AWS_REGION }} >> .env
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/backend-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
echo GOOGLE_RECAPTCHA_SECRET_KEY=${{ secrets.GOOGLE_RECAPTCHA_SECRET_KEY }} >> .env
echo AWS_COGNITO_CLIENT_ID=${{ secrets.AWS_COGNITO_CLIENT_ID_PROD }} >> .env
echo AWS_COGNITO_USERPOOL_ID=${{ secrets.AWS_COGNITO_USERPOOL_ID_PROD }} >> .env
echo FIREBASE_CONFIG=${{ secrets.FIREBASE_CONFIG_DEV }} >> .env
echo AWS_ACCESS_KEY_ID="${{ secrets.AWS_ACCESS_KEY_ID }}" >> .env
echo AWS_SECRET_ACCESS_KEY="${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> .env
echo AWS_REGION=${{ secrets.AWS_REGION }} >> .env
Expand Down
3 changes: 3 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,7 @@ If an `.env` file is loaded and either `ENV=DEV` or `ENV=PROD`, the following en
- `AWS_COGNITO_CLIENT_ID` - The ID of a registered client on the above AWS Cognito userpool (**without** a secret token)


- `FIREBASE_CONFIG` - This can be found on the [firebase console](https://console.firebase.google.com/) (sign-in using the admin google account)


- `GOOGLE_RECAPTCHA_SECRET_KEY` - The secret key of Google's reCAPTCHA service
1 change: 1 addition & 0 deletions backend/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ declare global {
AWS_SECRET_ACCESS_KEY?: string
AWS_SESSION_TOKEN?: string
AWS_REGION?: string
FIREBASE_CONFIG?: string
AWS_COGNITO_CLIENT_ID?: string
AWS_COGNITO_USERPOOL_ID?: string
}
Expand Down
1 change: 1 addition & 0 deletions backend/src/services/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ switch (process.env.ENV) {
"BREVO_CLIENT_EMAIL", "BREVO_CLIENT_PASSWORD",
"AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_REGION",
// "AWS_COGNITO_CLIENT_ID", "AWS_COGNITO_USERPOOL_ID",
"FIREBASE_CONFIG",
"GOOGLE_RECAPTCHA_SECRET_KEY"
]

Expand Down

0 comments on commit bfe5381

Please sign in to comment.