From e80dff2681fba5268a3082636ac091e0a0355cd0 Mon Sep 17 00:00:00 2001 From: AbhishekHS220 Date: Wed, 4 Jun 2025 11:18:00 +0530 Subject: [PATCH] Update onix-gcp-terraform-deploy.yml sa key --- .github/workflows/onix-gcp-terraform-deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/onix-gcp-terraform-deploy.yml b/.github/workflows/onix-gcp-terraform-deploy.yml index a0544c4..d68615c 100644 --- a/.github/workflows/onix-gcp-terraform-deploy.yml +++ b/.github/workflows/onix-gcp-terraform-deploy.yml @@ -30,11 +30,11 @@ jobs: with: terraform_version: 1.5.0 - - name: Authenticate to Google Cloud - run: echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}" > gcp-key.json + - name: Write GCP credentials to file + run: echo '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}' > gcp-key.json - - name: Export GCP Credentials to Terraform - run: echo "GOOGLE_APPLICATION_CREDENTIALS=$GITHUB_WORKSPACE/gcp-key.json" >> $GITHUB_ENV + - name: Export GCP credentials environment variable + run: echo "GOOGLE_APPLICATION_CREDENTIALS=$GITHUB_WORKSPACE/gcp-key.json" >> $GITHUB_ENV - name: Create backend.tf and Terraform Init working-directory: ./gerrit-repo/Terraform-CICD