-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
69 lines (57 loc) · 1.42 KB
/
Taskfile.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
61
62
63
64
65
66
67
68
69
---
version: "3"
vars:
PROJECT_DIR:
sh: "git rev-parse --show-toplevel"
CLUSTER_DIR: "{{.PROJECT_DIR}}/cluster"
ANSIBLE_DIR: "{{.PROJECT_DIR}}/provision/ansible"
KUBERNETES_DIR: "{{.ROOT_DIR}}/cluster"
TERRAFORM_DIR: "{{.PROJECT_DIR}}/provision/terraform"
dotenv: [ ".config.env", ".flux.env" ]
includes:
precommit: .taskfiles/PrecommitTasks.yaml
tools: .taskfiles/ToolsTasks.yaml
age: .taskfiles/AgeTasks.yaml
cluster: .taskfiles/ClusterTasks.yaml
cluster-debug: .taskfiles/ClusterDebugTasks.yaml
debug: .taskfiles/DebugTasks.yaml
ansible: .taskfiles/AnsibleTasks.yaml
flux: .taskfiles/FluxTasks.yaml
tasks:
default:
- task: precommit:run
deploy:
desc: Fully deployed tools and flux
cmds:
- task: ansible:deploy
- task: flux:install
redeploy:
desc: Redeploy the cluster
cmds:
- task: ansible:nuke
- task: deploy
init:
desc: Initialize workstation
cmds:
- task: tools:install
- task: precommit:init
- task: age:init
- task: ansible:init
update:
desc: Run update
cmds:
- task: tools:update
- task: precommit:update
- task: ansible:init
tg:fmt:
desc: Format.
cmd: terragrunt run-all fmt -recursive
tg:init:
desc: Init.
cmd: terragrunt run-all init
tg:plan:
desc: Plan.
cmd: terragrunt run-all plan
tg:apply:
desc: Apply.
cmd: terragrunt run-all apply -auto-approve