From e47f372e94df4a73de673e655b1edbd46df012b9 Mon Sep 17 00:00:00 2001 From: slali87 <109802779+slali87@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:42:19 +0200 Subject: [PATCH] Authentication and setup for GCP have been fixed --- .github/workflows/cloudrun-deploy-production.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cloudrun-deploy-production.yml b/.github/workflows/cloudrun-deploy-production.yml index e58a313..b572db5 100644 --- a/.github/workflows/cloudrun-deploy-production.yml +++ b/.github/workflows/cloudrun-deploy-production.yml @@ -9,13 +9,14 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout' - uses: actions/checkout@main - - name: 'Setup GCP Service Account' - uses: google-github-actions/setup-gcloud@main + uses: actions/checkout@v4 + - name: 'Configure authentication to GCP' + uses: google-github-actions/auth@v2 with: + credentials_json: '${{ secrets.GCP_SERVICE_ACCOUNT_SECRET }}' project_id: ${{ secrets.GCP_PROJECT_ID }} - service_account_key: ${{ secrets.GCP_SERVICE_ACCOUNT_SECRET }} - export_default_credentials: true + - name: 'Set up GCP SDK' + uses: google-github-actions/setup-gcloud@v2 - name: 'Configure Docker' run: make gcloud-docker-init - name: 'Build'