forked from open-component-model/open-component-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
205 lines (195 loc) · 6.19 KB
/
Copy pathTaskfile.yml
File metadata and controls
205 lines (195 loc) · 6.19 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
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# https://ocm.software/docs/getting-started/
version: '3'
dotenv: ['.env', '.env.local']
output: prefixed
includes:
tools:
taskfile: ./tools.Taskfile.yml
bindings/go/cel:
optional: true
taskfile: ./bindings/go/cel/Taskfile.yml
dir: ./bindings/go/cel
bindings/go/credentials:
optional: true
taskfile: ./bindings/go/credentials/Taskfile.yml
dir: ./bindings/go/credentials
bindings/go/constructor:
optional: true
taskfile: ./bindings/go/constructor/Taskfile.yml
dir: ./bindings/go/constructor
bindings/go/input/dir:
optional: true
taskfile: ./bindings/go/input/dir/Taskfile.yml
dir: ./bindings/go/input/dir
bindings/go/input/file:
optional: true
taskfile: ./bindings/go/input/file/Taskfile.yml
dir: ./bindings/go/input/file
bindings/go/helm:
optional: true
taskfile: ./bindings/go/helm/Taskfile.yml
dir: ./bindings/go/helm
bindings/go/input/utf8:
optional: true
taskfile: ./bindings/go/input/utf8/Taskfile.yml
dir: ./bindings/go/input/utf8
bindings/go/descriptor/v2:
optional: true
taskfile: ./bindings/go/descriptor/v2/Taskfile.yml
dir: ./bindings/go/descriptor/v2
bindings/go/descriptor/normalisation:
optional: true
taskfile: ./bindings/go/descriptor/normalisation/Taskfile.yml
dir: ./bindings/go/descriptor/normalisation
bindings/go/descriptor/runtime:
optional: true
taskfile: ./bindings/go/descriptor/runtime/Taskfile.yml
dir: ./bindings/go/descriptor/runtime
bindings/go/runtime:
optional: true
taskfile: ./bindings/go/runtime/Taskfile.yml
dir: ./bindings/go/runtime
bindings/go/generator:
optional: true
taskfile: ./bindings/go/generator/Taskfile.yml
dir: ./bindings/go/generator
bindings/go/blob:
optional: true
taskfile: ./bindings/go/blob/Taskfile.yml
dir: ./bindings/go/blob
bindings/go/ctf:
optional: true
taskfile: ./bindings/go/ctf/Taskfile.yml
dir: ./bindings/go/ctf
bindings/go/oci:
optional: true
taskfile: ./bindings/go/oci/Taskfile.yml
dir: ./bindings/go/oci
bindings/go/examples:
optional: true
taskfile: ./bindings/go/examples/Taskfile.yml
dir: ./bindings/go/examples
bindings/go/oci/integration:
optional: true
taskfile: ./bindings/go/oci/integration/Taskfile.yml
dir: ./bindings/go/oci/integration
bindings/go/dag:
optional: true
taskfile: ./bindings/go/dag/Taskfile.yml
dir: ./bindings/go/dag
bindings/go/plugin:
optional: true
taskfile: ./bindings/go/plugin/Taskfile.yml
dir: ./bindings/go/plugin
bindings/go/configuration:
optional: true
taskfile: ./bindings/go/configuration/Taskfile.yml
dir: ./bindings/go/configuration
bindings/go/http:
optional: true
taskfile: ./bindings/go/http/Taskfile.yml
dir: ./bindings/go/http
bindings/go/http/integration:
optional: true
taskfile: ./bindings/go/http/integration/Taskfile.yml
dir: ./bindings/go/http/integration
bindings/go/repository:
optional: true
taskfile: ./bindings/go/repository/Taskfile.yml
dir: ./bindings/go/repository
bindings/go/rsa:
optional: true
taskfile: ./bindings/go/rsa/Taskfile.yml
dir: ./bindings/go/rsa
bindings/go/gpg:
optional: true
taskfile: ./bindings/go/gpg/Taskfile.yml
dir: ./bindings/go/gpg
bindings/go/signing:
optional: true
taskfile: ./bindings/go/signing/Taskfile.yml
dir: ./bindings/go/signing
bindings/go/sigstore:
optional: true
taskfile: ./bindings/go/sigstore/Taskfile.yml
dir: ./bindings/go/sigstore
bindings/go/sigstore/integration:
optional: true
taskfile: ./bindings/go/sigstore/integration/Taskfile.yml
dir: ./bindings/go/sigstore/integration
bindings/go/transfer:
optional: true
taskfile: ./bindings/go/transfer/Taskfile.yml
dir: ./bindings/go/transfer
bindings/go/transfer/integration:
optional: true
taskfile: ./bindings/go/transfer/integration/Taskfile.yml
dir: ./bindings/go/transfer/integration
bindings/go/transform:
optional: true
taskfile: ./bindings/go/transform/Taskfile.yml
dir: ./bindings/go/transform
cli:
optional: true
taskfile: ./cli/Taskfile.yml
dir: ./cli
cli/integration:
optional: true
taskfile: ./cli/integration/Taskfile.yml
dir: ./cli/integration
kubernetes/controller:
optional: true
taskfile: ./kubernetes/controller/Taskfile.yml
dir: ./kubernetes/controller
vars:
GO_MODULES:
sh: find '{{ .ROOT_DIR }}' -path '{{ .ROOT_DIR }}/website' -prune -o -name go.mod -print -exec dirname {} \; | grep -v go.mod | sed 's|{{ .ROOT_DIR }}/||'
tasks:
default:
deps: ["cli:build", "kubernetes/controller:build"]
go_modules:
desc: "List all Go Modules available in this project"
cmd: echo "{{ .GO_MODULES }}"
silent: true
test:
desc: "Run all tests in the project"
vars:
TASKS:
sh: "task -aj | jq -r '.tasks[] | select(.name | endswith(\":test\")) | .name | rtrimstr(\":test\")'"
cmds:
- for: { var: TASKS }
task: '{{.ITEM}}:test'
test/integration:
desc: "Run all integration tests in the project, possibly requiring external systems"
vars:
TASKS:
sh: "task -aj | jq -r '.tasks[] | select(.name | endswith(\":test/integration\")) | .name | rtrimstr(\":test/integration\")'"
cmds:
- for: { var: TASKS }
task: '{{.ITEM}}:test/integration'
init/go.work:
desc: "Initialize the workspace environment"
status:
- find go.work
cmds:
- go work init
- for: { var: GO_MODULES }
cmd: 'go work use {{.ITEM}}'
tidy:
desc: "Run go mod tidy on all Go modules in the project"
cmds:
- for: { var: GO_MODULES }
cmd: 'cd {{.ITEM}} && go mod tidy'
generate:
desc: "Run all Code Generators in the project"
cmds:
- task: 'bindings/go/generator:ocmtypegen/generate'
- task: 'bindings/go/generator:jsonschemagen/generate'
- task: 'tools:deepcopy-gen/generate-deepcopy'
- task: 'kubernetes/controller:manifests'
- task: 'kubernetes/controller:generate'
- task: 'cli:generate/docs'
vars:
CLI_DOCUMENTATION_MODE: "hugo"
CLI_DOCUMENTATION_DIRECTORY: '{{ .ROOT_DIR }}/cli/docs/reference'
- task: 'tidy'