Skip to content

Commit

Permalink
fix gcp auth
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks committed Nov 27, 2024
1 parent bffe08d commit ecd4e7c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ jobs:
chmod 600 ${{ env.VENOM_VAR_gitRepoPrivateKeyPath }}
eval "$(ssh-agent -s)"
ssh-add ${{ env.VENOM_VAR_gitRepoPrivateKeyPath }}
- name: Decode and save Google service account to a file
run: (base64 -d <<< ${{ secrets.E2E_GCP_SA_KEY }}) > ${{ env.E2E_GCP_SA_KEY_FILE }}
- name: Decode and save Google service account to a file/env var
run: |
(base64 -d <<< ${{ secrets.E2E_GCP_SA_KEY }}) > ${{ env.E2E_GCP_SA_KEY_FILE }}
echo "E2E_GCP_SA_KEY_DECODED=$(base64 -d <<< ${{ secrets.E2E_GCP_SA_KEY }})" >> $GITHUB_ENV
- name: GCloud Auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ env.E2E_GCP_SA_KEY_FILE }}
credentials_json: ${{ env.E2E_GCP_SA_KEY_DECODED }}
- name: Setup Go
uses: actions/[email protected]
with:
Expand Down

0 comments on commit ecd4e7c

Please sign in to comment.