From c1436d4c700eafad8fa45659107e6156633ebf93 Mon Sep 17 00:00:00 2001 From: Ferran Vidal Date: Wed, 7 Jun 2023 04:28:20 +0200 Subject: [PATCH] Update google-github-actions/setup-gcloud (#2548) On the latest `google-github-actions/setup-gcloud` versions, the auth mechanism has been removed and `google-github-actions/auth` needs to be used instead. Closes #2525 Signed-off-by: Ferran Vidal --- .github/workflows/images.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 626ab6fa8..300986970 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -64,11 +64,13 @@ jobs: # Setup auth if not a PR. - if: github.event_name != 'pull_request' - uses: google-github-actions/setup-gcloud@04141d8a7edfc8c679682f23e7bbbe05cbe32bb3 # v0.5.1 + uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1 with: - service_account_key: ${{ secrets.GCR_DEVOPS_SERVICE_ACCOUNT_KEY }} - project_id: kaniko-project - export_default_credentials: true + credentials_json: '${{ secrets.GCR_DEVOPS_SERVICE_ACCOUNT_KEY }}' + export_environment_variables: true + create_credentials_file: true + - if: github.event_name != 'pull_request' + uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b # v1.1.1 - if: github.event_name != 'pull_request' run: gcloud auth configure-docker