From 23d3b717cc0e16254ef8d3ff442b77c40a109c5e Mon Sep 17 00:00:00 2001 From: Benson Cho <100653148+bcho892@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:30:32 +1300 Subject: [PATCH] add stripe env variables to server deployment (#193) * update workflows * change --env format * disable on prs --- .github/workflows/deploy-server.production.yml | 2 +- .github/workflows/deploy-server.staging.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-server.production.yml b/.github/workflows/deploy-server.production.yml index 400b3f34e..888f8f325 100644 --- a/.github/workflows/deploy-server.production.yml +++ b/.github/workflows/deploy-server.production.yml @@ -20,6 +20,6 @@ jobs: steps: - uses: actions/checkout@v3 - uses: superfly/flyctl-actions/setup-flyctl@master - - run: flyctl deploy --remote-only --config fly.production.toml --env "GOOGLE_SERVICE_ACCOUNT_JSON=$(echo ${{ secrets.PROD_SERVER_SERVICE_ACCOUNT }} | base64 --decode)" + - run: flyctl deploy --remote-only --config fly.production.toml --env "GOOGLE_SERVICE_ACCOUNT_JSON=$(echo ${{ secrets.PROD_SERVER_SERVICE_ACCOUNT }} | base64 --decode) STRIPE_API_SECRET=${{ secrets.PROD_SERVER_STRIPE_API_SECRET }} STRIPE_API_KEY=${{ secrets.PROD_SERVER_STRIPE_API_KEY }}" env: FLY_API_TOKEN: ${{ secrets.FLY_API_PRODUCTION_API_TOKEN }} diff --git a/.github/workflows/deploy-server.staging.yml b/.github/workflows/deploy-server.staging.yml index 8eb12de09..e4d0c79aa 100644 --- a/.github/workflows/deploy-server.staging.yml +++ b/.github/workflows/deploy-server.staging.yml @@ -23,6 +23,6 @@ jobs: steps: - uses: actions/checkout@v3 - uses: superfly/flyctl-actions/setup-flyctl@master - - run: flyctl deploy --remote-only --config fly.staging.toml --env "GOOGLE_SERVICE_ACCOUNT_JSON=$(echo ${{ secrets.STAGING_SERVER_SERVICE_ACCOUNT }} | base64 --decode)" + - run: flyctl deploy --remote-only --config fly.staging.toml --env "GOOGLE_SERVICE_ACCOUNT_JSON=$(echo ${{ secrets.STAGING_SERVER_SERVICE_ACCOUNT }} | base64 --decode) STRIPE_API_SECRET=${{ secrets.STAGING_SERVER_STRIPE_API_SECRET }} STRIPE_API_KEY=${{ secrets.STAGING_SERVER_STRIPE_API_KEY }}" env: FLY_API_TOKEN: ${{ secrets.FLY_API_STAGING_API_TOKEN }}