diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 88cdb17..0d9a463 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -24,18 +24,15 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v3 - # Fix issue of setup-gcloud - - run: | - sudo apt-get install python2.7 - export CLOUDSDK_PYTHON="/usr/bin/python2" - - - 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 uses: docker/setup-qemu-action@v1