Skip to content

Commit

Permalink
Merge pull request #10 from jenish-jain/gcp-cost-reduction
Browse files Browse the repository at this point in the history
ISSUE-9 | moving secrets via github secrets to reduce secret manager …
  • Loading branch information
jenish-jain authored Jan 6, 2024
2 parents 43f836d + 9e56da1 commit 9cbb673
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/google-cloudrun-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ env:
PROJECT_ID: realm-asgard # TODO: update Google Cloud project id
SERVICE: bean-counter # TODO: update Cloud Run service name
REGION: us-central1 # TODO: update Cloud Run service region
PORT: '${{ vars.PORT }}'
KEY_JSON_BASE64: '${{ secrets.KEY_JSON_BASE64 }}'
PURCHASE_SPREADSHEET_ID: '${{ secrets.PURCHASE_SPREADSHEET_ID }}'
PURCHASE_SHEET_ID: '${{ secrets.PURCHASE_SHEET_ID }}'
SALES_SPREADSHEET_ID: '${{ secrets.SALES_SPREADSHEET_ID }}'
SALES_SHEET_ID: '${{ secrets.SALES_SHEET_ID }}'
REPORTER_SPREADSHEET_ID: '${{ secrets.REPORTER_SPREADSHEET_ID }}'

jobs:
deploy:
Expand Down Expand Up @@ -85,15 +92,9 @@ jobs:
id: deploy
uses: google-github-actions/deploy-cloudrun@v0
with:
environment: production
service: ${{ env.SERVICE }}
region: ${{ env.REGION }}
secrets: |
KEY_JSON_BASE64=google-jwt-token-spreadsheet:latest
PURCHASE_SPREADSHEET_ID=beancounter-PURCHASE_SPREADSHEET_ID:latest
PURCHASE_SHEET_ID=beancounter-PURCHASE_SHEET_ID:latest
SALES_SPREADSHEET_ID=beancounter-SALES_SPREADSHEET_ID:latest
SALES_SHEET_ID=beancounter-SALES_SHEET_ID:latest
REPORTER_SPREADSHEET_ID=beancounter-REPORTER_SPREADSHEET_ID:latest
# NOTE: If required, update to the appropriate source folder
source: ./

Expand Down

0 comments on commit 9cbb673

Please sign in to comment.