From bf26673b72a6b045b91cd99b93cb780a627cd75b Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Wed, 18 Dec 2024 19:01:19 +0800 Subject: [PATCH] Fix the issue pushing image to GCR Bump up the actions and fix the error pushing image to GCR Signed-off-by: Daniel Jiang --- .github/workflows/push.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 774ba01..b13c3b0 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -5,6 +5,7 @@ on: branches: - 'main' - 'release-**' + - 'jt-**' tags: - '*' @@ -24,17 +25,14 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v3 - # Fix issue of setup-gcloud - - run: | - sudo apt-get install python3 - export CLOUDSDK_PYTHON="/usr/bin/python3" - - - uses: google-github-actions/setup-gcloud@v0 + - id: 'auth' + uses: 'google-github-actions/auth@v2' with: - version: '285.0.0' - service_account_key: ${{ secrets.GCS_SA_KEY }} - export_default_credentials: true - - run: gcloud info + credentials_json: '${{ secrets.GCS_SA_KEY }}' + - name: 'Setup Cloud SDK' + uses: google-github-actions/setup-gcloud@v2 + - name: 'Use gcloud CLI' + run: gcloud info - name: Set up QEMU id: qemu