-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
37 lines (32 loc) · 1.02 KB
/
Copy pathTaskfile.yaml
File metadata and controls
37 lines (32 loc) · 1.02 KB
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
version: "3"
includes:
talos:
taskfile: ./src/talos/Taskfile.yaml
dir: ./src/talos
proxmox:
taskfile: ./src/proxmox/vm/Taskfile.yaml
dir: ./src/proxmox/vm
tasks:
default:
silent: true
desc: "Run pre-commit hooks formatting, linting, and validate"
cmds:
- pre-commit run --all-files --color never
####################################################################
# Generate Terraform Module Documentation using terraform-docs #
# https://github.com/terraform-docs/terraform-docs #
####################################################################
generate-docs:
env:
modules: "src/talos src/proxmox/vm src/proxmox/lxc"
cmds:
- |
for module in ${modules}; do
terraform-docs --config ./.terraform-docs.yml ${module}
done
tf-cleanup:
silent: true
desc: "Cleanup .terraform directories"
cmds:
- find ./ -type d -name ".terraform" -exec rm -rf {} +
- find ./ -type f -name "*.lock.hcl" -delete