From 970238b392c0da6a08d98f3be4e5936942497ca6 Mon Sep 17 00:00:00 2001 From: Jared Trouth Date: Wed, 20 Dec 2023 09:17:14 -0600 Subject: [PATCH] update gcp actions --- .github/workflows/build-and-push.yaml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index 68aa9bb9..f7759ff9 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -53,28 +53,25 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Login to GCP Dev - uses: google-github-actions/setup-gcloud@v0 + uses: 'google-github-actions/auth@v2' if: ${{ (github.ref != 'master' && github.ref_type != 'tag') || github.base_ref == 'develop' }} with: - service_account_key: ${{ secrets.DEV_SA_KEY }} - project_id: skyviewer - export_default_credentials: true + credentials_json: ${{ secrets.DEV_SA_KEY }} - name: Login to GCP Int - uses: google-github-actions/setup-gcloud@v0 + uses: 'google-github-actions/auth@v2' if: ${{ github.ref == 'master' || github.base_ref == 'master'}} with: - service_account_key: ${{ secrets.SKYVIEWER_INT_SERVICE_ACCOUNT }} - project_id: edc-int-6c5e - export_default_credentials: true + credentials_json: ${{ secrets.SKYVIEWER_INT_SERVICE_ACCOUNT }} - name: Login to GCP Prod - uses: google-github-actions/setup-gcloud@v0 + uses: 'google-github-actions/auth@v2' if: ${{ github.ref_type == 'tag' }} with: - service_account_key: ${{ secrets.PIPELINE_EPO_PROD_PROJECT }} - project_id: edc-prod-eef0 - export_default_credentials: true + credentials_json: ${{ secrets.PIPELINE_EPO_PROD_PROJECT }} + - + name: 'Set up Cloud SDK' + uses: 'google-github-actions/setup-gcloud@v2' - run: gcloud --quiet auth configure-docker -