Update onix-gcp-terraform-deploy.yml

This commit is contained in:
AbhishekHS220
2025-06-04 11:00:22 +05:30
committed by GitHub
parent 3d90ea8cd2
commit bc4f38b26f

View File

@@ -25,11 +25,16 @@ jobs:
- name: Authenticate to Google Cloud
run: echo '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}' > gcp-key.json
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.5.0
- name: Terraform Init with backend
working-directory: ./gerrit-repo/Terraform-CICD
run: |
terraform init \
-backend-config="beckn-cicd-tf-state-bucket" \
-backend-config="bucket=beckn-cicd-tf-state-bucket" \
-backend-config="prefix=terraform/state" \
-backend-config="credentials=${{ github.workspace }}/gcp-key.json"