From 7aabb08a78854e08f1dbf044f910c4894666fdff Mon Sep 17 00:00:00 2001 From: Harish Mohan Raj Date: Tue, 16 Apr 2024 15:18:31 +0530 Subject: [PATCH] Add missing env variable --- .github/workflows/pipeline.yml | 2 +- scripts/deploy_backend.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 3bf37b4..e6d40ce 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -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 }} diff --git a/scripts/deploy_backend.sh b/scripts/deploy_backend.sh index 426f845..1bca2c4 100755 --- a/scripts/deploy_backend.sh +++ b/scripts/deploy_backend.sh @@ -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" @@ -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"