Skip to content

Commit

Permalink
Add missing env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
harishmohanraj committed Apr 16, 2024
1 parent ff59e8d commit 7aabb08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
GOOGLE_CLIENT_ID: ${{ github.ref_name == 'main' && secrets.PROD_GOOGLE_CLIENT_ID || secrets.STAGING_GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ github.ref_name == 'main' && secrets.PROD_GOOGLE_CLIENT_SECRET || secrets.STAGING_GOOGLE_CLIENT_SECRET }}
ADMIN_EMAILS: ${{ vars.ADMIN_EMAILS }}

WASP_SERVER_URL: ${{ github.ref_name == 'main' && vars.PROD_WASP_SERVER_URL || vars.STAGING_WASP_SERVER_URL }}
ADS_SERVER_URL: ${{ github.ref_name == 'main' && vars.PROD_ADS_SERVER_URL || vars.STAGING_ADS_SERVER_URL }}
BACKEND_DOMAIN: ${{ github.ref_name == 'main' && vars.PROD_BACKEND_DOMAIN || vars.STAGING_BACKEND_DOMAIN }}
WASP_WEB_CLIENT_URL: ${{ github.ref_name == 'main' && vars.PROD_WASP_WEB_CLIENT_URL || vars.STAGING_WASP_WEB_CLIENT_URL }}
Expand Down
2 changes: 2 additions & 0 deletions scripts/deploy_backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ check_variable "PRO_SUBSCRIPTION_PRICE_ID"
check_variable "STRIPE_WEBHOOK_SECRET"
check_variable "GOOGLE_CLIENT_ID"
check_variable "GOOGLE_CLIENT_SECRET"
check_variable "WASP_SERVER_URL"



Expand Down Expand Up @@ -60,6 +61,7 @@ $ssh_command "docker run --name $container_name -p $PORT:$PORT -e PORT='$PORT' \
-e DATABASE_URL='$DATABASE_URL' -e WASP_WEB_CLIENT_URL='$WASP_WEB_CLIENT_URL' \
-e JWT_SECRET='$JWT_SECRET' -e GOOGLE_CLIENT_ID='$GOOGLE_CLIENT_ID' \
-e GOOGLE_CLIENT_SECRET='$GOOGLE_CLIENT_SECRET' \
-e WASP_SERVER_URL='$WASP_SERVER_URL' \
-e STRIPE_KEY='$STRIPE_KEY' -e PRO_SUBSCRIPTION_PRICE_ID='$PRO_SUBSCRIPTION_PRICE_ID' \
-e STRIPE_WEBHOOK_SECRET='$STRIPE_WEBHOOK_SECRET' -e ADMIN_EMAILS='$ADMIN_EMAILS' \
-d ghcr.io/$GITHUB_REPOSITORY:$TAG"

0 comments on commit 7aabb08

Please sign in to comment.