diff --git a/.github/workflows/onix-gcp-terraform-deploy.yml b/.github/workflows/onix-gcp-terraform-deploy.yml index 1fce25f..d1e01d9 100644 --- a/.github/workflows/onix-gcp-terraform-deploy.yml +++ b/.github/workflows/onix-gcp-terraform-deploy.yml @@ -47,6 +47,18 @@ jobs: terraform init + - name: Create provider.tf with credentials + working-directory: ./gerrit-repo/Terraform-CICD + run: | + cat < provider.tf + provider "google" { + credentials = "${{ github.workspace }}/gcp-key.json" + project = trusty-relic-370809" + region = "asia-south1" + } + EOF + + - name: Terraform Plan working-directory: ./gerrit-repo/Terraform-CICD