Skip to content

Commit a14099f

Browse files
authored
Fix tf apply (#6)
1 parent b489112 commit a14099f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/reusable-terraform-apply.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Reusable workflow to apply Terraform
1+
name: Reusable - Terraform apply
22

33
on:
44
workflow_call:
@@ -122,9 +122,9 @@ jobs:
122122
- name: Terraform validate
123123
run: terraform validate
124124
- name: Terraform plan
125-
run: terraform plan -out=plan.tfplan ${{ inputs.terraform-var-flags }}
125+
run: terraform plan -input=false -out=plan.tfplan ${{ inputs.terraform-var-flags }}
126126
- name: Terraform apply
127-
run: terraform apply -auto-approve plan.tfplan ${{ inputs.terraform-var-flags }}
127+
run: terraform apply -auto-approve plan.tfplan
128128
env:
129129
TF_HTTP_ADDRESS: "http://localhost:8080/${{ secrets.tfbackend-tenant }}/state/${{ inputs.tfbackend-project }}"
130130
TF_HTTP_LOCK_ADDRESS: "http://localhost:8080/${{ secrets.tfbackend-tenant }}/state/${{ inputs.tfbackend-project }}/lock"

.github/workflows/reusable-terraform-validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Reusable workflow to validate Terraform project
1+
name: Reusable - Terraform validate
22

33
on:
44
workflow_call:

0 commit comments

Comments
 (0)