Skip to content

Commit

Permalink
add base64 to gcloud json to keep strictly keep the structure of the …
Browse files Browse the repository at this point in the history
…json
  • Loading branch information
walimorris committed Aug 4, 2024
1 parent af52567 commit 108c6a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Set up Google Cloud credentials
run: echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}" > gcloud-key.json
- name: Decode Google Cloud credentials
run: echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}" | base64 --decode > gcloud-key.json

- name: Set GOOGLE_APPLICATION_CREDENTIALS environment variable
run: echo "GOOGLE_APPLICATION_CREDENTIALS=$GITHUB_WORKSPACE/gcloud-key.json" >> $GITHUB_ENV
Expand Down

0 comments on commit 108c6a0

Please sign in to comment.