We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58e8f52 commit 7392e88Copy full SHA for 7392e88
.github/workflows/deploy.yaml
@@ -27,11 +27,12 @@ jobs:
27
- name: Checkout code
28
uses: actions/checkout@v4
29
30
- - name: Authenticate with Google Cloud using Service Account Key
31
- run: |
32
- echo "${{ secrets.GCP_SA_KEY }}" > "${{ github.workspace }}/gcp-key.json"
33
- export GOOGLE_APPLICATION_CREDENTIALS="${{ github.workspace }}/gcp-key.json"
34
- gcloud auth activate-service-account --key-file="${{ github.workspace }}/gcp-key.json"
+ - uses: google-github-actions/auth@v1
+ with:
+ credentials_json: ${{ secrets.GCP_KEY_JSON }}
+
+ - name: List GCP Projects
35
+ run: gcloud projects list
36
37
- name: Configure Docker for the Artifact Registry
38
run: gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet
0 commit comments