Skip to content

Commit d26f0c4

Browse files
reasonerjtkaovilai
authored andcommitted
Fix the issue pushing image to GCR
Bump up the actions and fix the error pushing image to GCR Signed-off-by: Daniel Jiang <[email protected]> Signed-off-by: Tiger Kaovilai <[email protected]>
1 parent 1e82c4c commit d26f0c4

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/push.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@ jobs:
2424
- name: Check out code into the Go module directory
2525
uses: actions/checkout@v3
2626

27-
# Fix issue of setup-gcloud
28-
- run: |
29-
sudo apt-get install python3
30-
export CLOUDSDK_PYTHON="/usr/bin/python3"
31-
32-
- uses: google-github-actions/setup-gcloud@v0
27+
- id: 'auth'
28+
uses: 'google-github-actions/auth@v2'
3329
with:
34-
version: '285.0.0'
35-
service_account_key: ${{ secrets.GCS_SA_KEY }}
36-
export_default_credentials: true
37-
- run: gcloud info
30+
credentials_json: '${{ secrets.GCS_SA_KEY }}'
31+
- name: 'Setup Cloud SDK'
32+
uses: google-github-actions/setup-gcloud@v2
33+
- name: 'Use gcloud CLI'
34+
run: gcloud info
35+
3836
- name: Set up QEMU
3937
id: qemu
4038
uses: docker/setup-qemu-action@v1

0 commit comments

Comments
 (0)