-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
71 lines (62 loc) · 1.62 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
70
71
---
version: "3"
set: [pipefail]
shopt: [globstar]
dotenv:
- .env
vars:
# renovate: datasource=github-releases depName=chainguard-dev/malcontent
MALCONTENT_VERSION: "1.7.1"
# renovate: datasource=github-releases depName=Orange-OpenSource/hurl
HURL_VERSION: "6.0.0"
# renovate: datasource=github-releases depName=opentofu/opentofu
OPENTOFU_VERSION: "1.8.8"
ARCH:
sh: uname -m
TIMESTAMP:
sh: date +%Y-%m-%dT%H:%M:%S
GITHUB_REGISTRY: "ghcr.io/beholdenkey/imagesafe"
includes:
workstation:
taskfile: .taskfiles/Workstation/Taskfile.yaml
flatten: true
pre-commit:
aliases: ["pre"]
taskfile: .taskfiles/PreCommit/Taskfile.yaml
malcontent:
taskfile: ./images/malcontent/Taskfile.yaml
hurl:
taskfile: ./images/hurl/Taskfile.yaml
opentofu:
taskfile: ./images/opentofu/Taskfile.yaml
tasks:
default:
desc: Show help
cmds:
- task --list
login:ghcr:
cmds:
- for:
matrix:
TOOLS: ["docker", "apko"]
cmd: echo "{{.GITHUB_TOKEN}}" | {{.ITEM.TOOLS}} login ghcr.io -u "{{.GITHUB_USER}}" --password-stdin
preconditions:
- sh: which docker
msg: "Docker is not installed. Please install Docker."
- sh: which apko
msg: "apko is not installed. Please install apko."
prune:images:
desc: Prune images
cmds:
- docker image prune -a -f
preconditions:
- sh: which docker
msg: "Docker is not installed. Please install Docker."
clean:
desc: Clean up build artifacts
sources:
- "**/*.spdx.json"
- "**/*.tar"
cmds:
- for: sources
cmd: rm -f "{{.ITEM}}"