This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -8,10 +8,18 @@ trigger:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Terraform FMT PR
|
- name: Terraform syntax check
|
||||||
image: hashicorp/terraform:1.5
|
image: hashicorp/terraform:1.5
|
||||||
commands:
|
commands:
|
||||||
- terraform -chdir=infrastructure fmt -diff -check
|
- terraform -chdir=infrastructure fmt -diff -check
|
||||||
# when:
|
# when:
|
||||||
# event:
|
# event:
|
||||||
|
# - pull_request
|
||||||
|
- name: terraform plan
|
||||||
|
image: hashicorp/terraform:1.5
|
||||||
|
commands:
|
||||||
|
- terraform init
|
||||||
|
- terraform plan
|
||||||
|
# when:
|
||||||
|
# event:
|
||||||
# - pull_request
|
# - pull_request
|
||||||
Reference in New Issue
Block a user