-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.space.kts
39 lines (36 loc) · 965 Bytes
/
.space.kts
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
import space.jetbrains.api.runtime.*
job("TF - Validate") {
container("hashicorp/terraform:1.0.8") {
entrypoint("/bin/sh")
args(
"-ec",
"""
set -o pipefail
terraform init -backend=false -force-copy -no-color > /dev/null
terraform validate -no-color
""".trimIndent()
)
}
}
job("TF - Fmt") {
container("hashicorp/terraform:1.0.8") {
entrypoint("/bin/sh")
args(
"-ec",
"terraform fmt -check -recursive -diff && echo terraform fmt has been checked, everything is good"
)
}
}
job("TF - Lint") {
container("ghcr.io/terraform-linters/tflint-bundle:latest") {
entrypoint("/bin/sh")
args(
"-ec",
"""
set -o pipefail
tflint --init
tflint
""".trimIndent()
)
}
}