-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
186 lines (186 loc) · 5.11 KB
/
Taskfile.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"output": "prefixed",
"tasks": {
"default": {
"cmds": [
"kr8-helpers check-environment",
{
"task": "gcloud"
},
{
"task": "homelab"
},
{
"task": "do"
},
{
"task": "minikube"
},
{
"task": "kops"
}
]
},
"do": {
"cmds": [
{
"task": "do_taskfile"
},
"task -d tmp/do generate"
],
"desc": "generate components for do"
},
"do_deploy": {
"cmds": [
"task -d tmp/do deploy"
],
"desc": "deploy all components for cluster: do"
},
"do_dryrun": {
"cmds": [
"task -d tmp/do dryrun"
],
"desc": "dryrun all components for cluster: do"
},
"do_taskfile": {
"cmds": [
"mkdir -p tmp/do",
"kr8 jsonnet render --cluster do --format yaml templates/task-generate-cluster-parallel.jsonnet > tmp/do/Taskfile.yml"
],
"desc": "generate task file in tmp directory for cluster: do"
},
"gcloud": {
"cmds": [
{
"task": "gcloud_taskfile"
},
"task -d tmp/gcloud generate"
],
"desc": "generate components for gcloud"
},
"gcloud_deploy": {
"cmds": [
"task -d tmp/gcloud deploy"
],
"desc": "deploy all components for cluster: gcloud"
},
"gcloud_dryrun": {
"cmds": [
"task -d tmp/gcloud dryrun"
],
"desc": "dryrun all components for cluster: gcloud"
},
"gcloud_taskfile": {
"cmds": [
"mkdir -p tmp/gcloud",
"kr8 jsonnet render --cluster gcloud --format yaml templates/task-generate-cluster-parallel.jsonnet > tmp/gcloud/Taskfile.yml"
],
"desc": "generate task file in tmp directory for cluster: gcloud"
},
"homelab": {
"cmds": [
{
"task": "homelab_taskfile"
},
"task -d tmp/homelab generate"
],
"desc": "generate components for homelab"
},
"homelab_deploy": {
"cmds": [
"task -d tmp/homelab deploy"
],
"desc": "deploy all components for cluster: homelab"
},
"homelab_dryrun": {
"cmds": [
"task -d tmp/homelab dryrun"
],
"desc": "dryrun all components for cluster: homelab"
},
"homelab_taskfile": {
"cmds": [
"mkdir -p tmp/homelab",
"kr8 jsonnet render --cluster homelab --format yaml templates/task-generate-cluster-parallel.jsonnet > tmp/homelab/Taskfile.yml"
],
"desc": "generate task file in tmp directory for cluster: homelab"
},
"kops": {
"cmds": [
{
"task": "kops_taskfile"
},
"task -d tmp/kops generate"
],
"desc": "generate components for kops"
},
"kops_deploy": {
"cmds": [
"task -d tmp/kops deploy"
],
"desc": "deploy all components for cluster: kops"
},
"kops_dryrun": {
"cmds": [
"task -d tmp/kops dryrun"
],
"desc": "dryrun all components for cluster: kops"
},
"kops_taskfile": {
"cmds": [
"mkdir -p tmp/kops",
"kr8 jsonnet render --cluster kops --format yaml templates/task-generate-cluster-parallel.jsonnet > tmp/kops/Taskfile.yml"
],
"desc": "generate task file in tmp directory for cluster: kops"
},
"minikube": {
"cmds": [
{
"task": "minikube_taskfile"
},
"task -d tmp/minikube generate"
],
"desc": "generate components for minikube"
},
"minikube_deploy": {
"cmds": [
"task -d tmp/minikube deploy"
],
"desc": "deploy all components for cluster: minikube"
},
"minikube_dryrun": {
"cmds": [
"task -d tmp/minikube dryrun"
],
"desc": "dryrun all components for cluster: minikube"
},
"minikube_taskfile": {
"cmds": [
"mkdir -p tmp/minikube",
"kr8 jsonnet render --cluster minikube --format yaml templates/task-generate-cluster-parallel.jsonnet > tmp/minikube/Taskfile.yml"
],
"desc": "generate task file in tmp directory for cluster: minikube"
},
"taskfiles": {
"cmds": [
{
"task": "gcloud_taskfile"
},
{
"task": "homelab_taskfile"
},
{
"task": "do_taskfile"
},
{
"task": "minikube_taskfile"
},
{
"task": "kops_taskfile"
}
],
"desc": "generate task files for all clusters"
}
},
"version": "2"
}