-
Notifications
You must be signed in to change notification settings - Fork 0
/
mold.yaml
60 lines (53 loc) · 1.67 KB
/
mold.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "0.5"
includes:
- url: "github.com/xtfc/std.mold"
ref: "0.5"
recipes:
init:
help: "Initialize Terraform"
runtime: "sh"
variables:
TF_ARGS: "Additional arguments to pass to terraform"
TF_INIT_ARGS: "Additional arguments to pass to terraform init"
script: |
terraform $TF_ARGS init $TF_INIT_ARGS
plan:
help: "Generate a Terraform plan"
runtime: "sh"
variables:
TF_ARGS: "Additional arguments to pass to terraform"
TF_PLAN_ARGS: "Additional arguments to pass to terraform plan"
script: |
terraform $TF_ARGS plan $TF_PLAN_ARGS
apply:
help: "Apply Terraform"
runtime: "sh"
variables:
TF_ARGS: "Additional arguments to pass to terraform"
TF_APPLY_ARGS: "Additional arguments to pass to terraform apply"
script: |
terraform $TF_ARGS apply $TF_APPLY_ARGS
destroy:
help: "Destroy Terraform"
runtime: "sh"
variables:
TF_ARGS: "Additional arguments to pass to terraform"
TF_DESTROY_ARGS: "Additional arguments to pass to terraform destroy"
script: |
terraform $TF_ARGS destroy $TF_DESTROY_ARGS
fmt:
help: "Run Terraform's autoformatter"
runtime: "sh"
variables:
TF_ARGS: "Additional arguments to pass to terraform"
TF_FMT_ARGS: "Additional arguments to pass to terraform fmt"
script: |
terraform $TF_ARGS fmt $TF_FMT_ARGS
fmtcheck:
help: "Run Terraform's autoformatter check"
runtime: "sh"
variables:
TF_ARGS: "Additional arguments to pass to terraform"
TF_FMTCHECK_ARGS: "Additional arguments to pass to terraform fmt -check"
script: |
terraform $TF_ARGS fmt -check $TF_FMTCHECK_ARGS