From b6fe94164f7163c643e7e6aa0fd13dfc71b2f2cd Mon Sep 17 00:00:00 2001 From: talkeret1 Date: Mon, 9 Dec 2024 12:48:23 +0200 Subject: [PATCH] Staging Workflow #9 --- .github/workflows/terraform.yml | 44 ++++++++++++++++----------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 75f8b292..909ddc76 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -28,25 +28,25 @@ jobs: shell: bash working-directory: ./terraform steps: - - name: Checkout Source Code - uses: actions/checkout@v4 - - name: Setup Terraform with Specified Version on the Runner - uses: hashicorp/setup-terraform@v2 - ## with: - ## terraform_version: 1.6.3 - - name: Terraform Init - id: init - run: terraform init -backend-config="bucket=$BUCKET_TF_STATE" - - name: Terraform Format - id: fmt - run: terraform fmt -check - - name: Terraform Validate - id: validate - run: terraform validate - - name: Terraform Plan - id: plan - run: terraform plan -no-color -input=false -out planfile - continue-on-error: true - - name: Terraform Plan Status - if: steps.plan.outcome == 'failure' - run: exit 1 \ No newline at end of file + - name: Checkout Source Code + uses: actions/checkout@v4 + - name: Setup Terraform with Specified Version on the Runner + uses: hashicorp/setup-terraform@v2 + ## with: + ## terraform_version: 1.6.3 + - name: Terraform Init + id: init + run: terraform init -backend-config="bucket=$BUCKET_TF_STATE" + - name: Terraform Format + id: fmt + run: terraform fmt -check + - name: Terraform Validate + id: validate + run: terraform validate + - name: Terraform Plan + id: plan + run: terraform plan -no-color -input=false -out planfile + continue-on-error: true + - name: Terraform Plan Status + if: steps.plan.outcome == 'failure' + run: exit 1 \ No newline at end of file