From 59989916d8e7b56ab0f72813801672afd4b84362 Mon Sep 17 00:00:00 2001 From: Eugenio Sales Date: Sat, 15 Oct 2022 00:14:21 -0300 Subject: [PATCH] feature #1 - Set working directory to terraform CD --- .github/workflows/terraform.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 4c7fa48..5f308f6 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -27,14 +27,18 @@ jobs: cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - name: Terraform Init + working-directory: ./terraform run: terraform init - name: Terraform Format + working-directory: ./terraform run: terraform fmt -check - name: Terraform Plan + working-directory: ./terraform run: terraform plan -input=false - name: Terraform Apply if: github.ref == 'refs/heads/"main"' && github.event_name == 'push' + working-directory: ./terraform run: terraform apply -auto-approve -input=false