tried seperate steps
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-10-27 12:46:34 +02:00
parent 2a5e6995a0
commit 0438af9f6a

View File

@@ -8,6 +8,11 @@ trigger:
- main - main
steps: steps:
- name: terraform init
image: hashicorp/terraform:1.5
commands:
- terraform -chdir=infrastructure init
- name: Terraform syntax check - name: Terraform syntax check
image: hashicorp/terraform:1.5 image: hashicorp/terraform:1.5
commands: commands:
@@ -18,7 +23,6 @@ steps:
- name: terraform plan - name: terraform plan
image: hashicorp/terraform:1.5 image: hashicorp/terraform:1.5
commands: commands:
- terraform -chdir=infrastructure init
- terraform -chdir=infrastructure plan - terraform -chdir=infrastructure plan
environment: environment:
TF_VAR_virtual_environment_endpoint: TF_VAR_virtual_environment_endpoint: