diff --git a/.github/workflows/deploy-terraform-apply.yaml b/.github/workflows/deploy-terraform-apply.yaml index 56e326b..339ea16 100644 --- a/.github/workflows/deploy-terraform-apply.yaml +++ b/.github/workflows/deploy-terraform-apply.yaml @@ -60,20 +60,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: tfcmt apply -- terraform apply -auto-approve - - - name: Check diff - id: check_diff - run: git diff --exit-code ./terraform/state - continue-on-error: true - - - name: exit if no diff - if: steps.check_diff.outcome == 'failure' - run: exit 0 - - - name: Commit and push - run: | - git config --global user.email "action@github.com" - git config --global user.name "GitHub Action" - git add terraform/state - git commit -m "🧱 Update terraform state" - git push origin main diff --git a/terraform/provider.tf b/terraform/provider.tf index 79df78c..e611152 100644 --- a/terraform/provider.tf +++ b/terraform/provider.tf @@ -6,8 +6,8 @@ provider "google" { terraform { required_version = ">= 1.8.0" - backend "local" { - path = "state/terraform.tfstate" + backend "gcs" { + bucket = "lumos-profile-management-tf-state" } required_providers {