-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
373 lines (318 loc) · 14 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
---
version: "3"
output: group
vars:
CREATED:
sh: date -u +'%Y-%m-%dT%H:%M:%SZ'
NAME: latexworks
ORG: robinwalterfit
REVISION:
sh: git log -n 1 --pretty=format:%H
VERSION:
sh: knope get-version
tasks:
build:
internal: true
desc: Build the image for the current platform
summary: |
Build the image for the current platform.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
deps: []
cmds:
- |
docker buildx build \
--build-arg CREATED="{{.CREATED}}" \
--build-arg FEDORA_VERSION="{{.FEDORA_VERSION}}" \
--build-arg REVISION="{{.REVISION}}" \
--build-arg TEXLIVE="texlive-scheme-{{.SCHEME}}" \
--build-arg VERSION="{{.VERSION}}" \
--target latexworks \
--tag {{.ORG}}/{{.NAME}}:{{.SCHEME}}-{{.FEDORA_VERSION}}-local \
.
vars:
FEDORA_VERSION: 40
build-basic:
aliases: ["build:basic"]
desc: Build the image for the current platform - TeX Live Scheme BASIC
summary: |
Build the image for the current platform - TeX Live Scheme BASIC.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
cmds:
- task: build
vars:
SCHEME: basic
build-context:
aliases: ["build:context"]
desc: Build the image for the current platform - TeX Live Scheme CONTEXT
summary: |
Build the image for the current platform - TeX Live Scheme CONTEXT.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
cmds:
- task: build
vars:
SCHEME: context
build-full:
aliases: ["build:full"]
desc: Build the image for the current platform - TeX Live Scheme FULL
summary: |
Build the image for the current platform - TeX Live Scheme FULL.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
cmds:
- task: build
vars:
SCHEME: full
build-gust:
aliases: ["build:gust"]
desc: Build the image for the current platform - TeX Live Scheme GUST
summary: |
Build the image for the current platform - TeX Live Scheme GUST.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
cmds:
- task: build
vars:
SCHEME: gust
build-medium:
aliases: ["build:medium"]
desc: Build the image for the current platform - TeX Live Scheme MEDIUM
summary: |
Build the image for the current platform - TeX Live Scheme MEDIUM.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
cmds:
- task: build
vars:
SCHEME: medium
build-minimal:
aliases: ["build:minimal"]
desc: Build the image for the current platform - TeX Live Scheme MINIMAL
summary: |
Build the image for the current platform - TeX Live Scheme MINIMAL.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
cmds:
- task: build
vars:
SCHEME: minimal
build-small:
aliases: ["build:small"]
desc: Build the image for the current platform - TeX Live Scheme SMALL
summary: |
Build the image for the current platform - TeX Live Scheme SMALL.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
cmds:
- task: build
vars:
SCHEME: small
build-tetex:
aliases: ["build:tetex"]
desc: Build the image for the current platform - TeX Live Scheme TETEX
summary: |
Build the image for the current platform - TeX Live Scheme TETEX.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
cmds:
- task: build
vars:
SCHEME: tetex
build-devcontainer:
internal: true
desc: Build the image for the current platform as Dev Container target
summary: |
Build the image for the current platform as Dev Container target.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
deps: []
cmds:
- |
docker buildx build \
--build-arg CREATED="{{.CREATED}}" \
--build-arg FEDORA_VERSION="{{.FEDORA_VERSION}}" \
--build-arg HADOLINT_VERSION="{{.HADOLINT_VERSION}}" \
--build-arg LTEX_LS_VERSION="{{.LTEX_LS_VERSION}}" \
--build-arg PYENV_VERSION="{{.PYENV_VERSION}}" \
--build-arg PYTHON_VERSION="{{.PYTHON_VERSION}}" \
--build-arg REVISION="{{.REVISION}}" \
--build-arg TEXLIVE="texlive-scheme-{{.SCHEME}}" \
--build-arg VERSION="{{.VERSION}}" \
--target devcontainer \
--tag {{.ORG}}/{{.NAME}}-devcontainer:{{.SCHEME}}-{{.FEDORA_VERSION}}-local \
.
vars:
FEDORA_VERSION: 40
HADOLINT_VERSION: 2.12.0
LTEX_LS_VERSION: 15.2.0
PYENV_VERSION: 2.3.24
PYTHON_VERSION: 3.10.6
USER_GID:
sh: id -g
USER_UID:
sh: id -u
USERNAME:
sh: id -un
build-devcontainer-basic:
aliases: ["build-devcontainer:basic"]
desc: Build the image for the current platform as Dev Container target - TeX Live Scheme BASIC
summary: |
Build the image for the current platform as Dev Container target - TeX Live Scheme BASIC.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
cmds:
- task: build-devcontainer
vars:
SCHEME: basic
build-devcontainer-context:
aliases: ["build-devcontainer:context"]
desc: Build the image for the current platform as Dev Container target - TeX Live Scheme CONTEXT
summary: |
Build the image for the current platform as Dev Container target - TeX Live Scheme CONTEXT.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
cmds:
- task: build-devcontainer
vars:
SCHEME: context
build-devcontainer-full:
aliases: ["build-devcontainer:full"]
desc: Build the image for the current platform as Dev Container target - TeX Live Scheme FULL
summary: |
Build the image for the current platform as Dev Container target - TeX Live Scheme FULL.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
cmds:
- task: build-devcontainer
vars:
SCHEME: full
build-devcontainer-gust:
aliases: ["build-devcontainer:gust"]
desc: Build the image for the current platform as Dev Container target - TeX Live Scheme GUST
summary: |
Build the image for the current platform as Dev Container target - TeX Live Scheme GUST.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
cmds:
- task: build-devcontainer
vars:
SCHEME: gust
build-devcontainer-medium:
aliases: ["build-devcontainer:medium"]
desc: Build the image for the current platform as Dev Container target - TeX Live Scheme MEDIUM
summary: |
Build the image for the current platform as Dev Container target - TeX Live Scheme MEDIUM.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
cmds:
- task: build-devcontainer
vars:
SCHEME: medium
build-devcontainer-minimal:
aliases: ["build-devcontainer:minimal"]
desc: Build the image for the current platform as Dev Container target - TeX Live Scheme MINIMAL
summary: |
Build the image for the current platform as Dev Container target - TeX Live Scheme MINIMAL.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
cmds:
- task: build-devcontainer
vars:
SCHEME: minimal
build-devcontainer-small:
aliases: ["build-devcontainer:small"]
desc: Build the image for the current platform as Dev Container target - TeX Live Scheme SMALL
summary: |
Build the image for the current platform as Dev Container target - TeX Live Scheme SMALL.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
cmds:
- task: build-devcontainer
vars:
SCHEME: small
build-devcontainer-tetex:
aliases: ["build-devcontainer:tetex"]
desc: Build the image for the current platform as Dev Container target - TeX Live Scheme TETEX
summary: |
Build the image for the current platform as Dev Container target - TeX Live Scheme TETEX.
The Docker Image will be built with Buildkit. However, for performance reasons this task will
only build the image for the current platform. This image will only be tagged with the user /
organisation identifier and the image name. The tag will be `local`.
The target will be the `devcontainer` stage. This image will be optimized for the usage with a
Dev Container.
cmds:
- task: build-devcontainer
vars:
SCHEME: tetex
changelog-entry:
desc: Print the latest changelog entry
summary: |
Print the latest changelog entry
This task will invoke `knope`. It will parse the changelog and print the entry of the
latest version to the console.
deps: []
cmds:
- knope changelog-entry
document-change:
desc: Invokes `knope` to document a change
summary: |
Invokes `knope` to document a change.
This task will invoke `knope`. It can be used to document a change with changesets instead of
conventional commits.
interactive: true
deps: []
cmds:
- knope changelog-entry
mega-linter:
desc: Run mega linter
summary: |
Run mega linter.
This task will use `npx` to run `mega-linter` locally.
interactive: true
deps: []
cmds:
- npx mega-linter-runner --flavor ci_light
version:
desc: Prints the project version
summary: |
Prints the project version.
This task invokes `knope` to retrieve the current project version and prints it to the
console.
deps: []
cmds:
- echo "LatexWorks version v{{.VERSION}}"