-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathTaskfile.yaml
94 lines (81 loc) · 2.71 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# https://taskfile.dev
version: "3"
tasks:
install:tools:
desc: Install all optional cli tools
dir: scripts
cmds:
- task: install:cobracli
- task: install:air
silent: true
install:cobracli:
desc: Install cobra-cli
cmds:
- go install github.com/spf13/cobra-cli@latest
install:air:
desc: Install a hot reloader. Watch for file changes and automatically rebuilds binary
cmds:
- go install github.com/cosmtrek/air@latest
shfmt:
desc: shfmt all
cmds:
- 'find ./patches/ | grep "\.sh$" | xargs -I {} shfmt -w -i 2 -ci -sr {}'
- 'find ./scripts/ | grep "\.sh$" | xargs -I {} shfmt -w -i 2 -ci -sr {}'
permission:
desc: chmod +x *.sh
cmds:
- 'find ./patches/ | grep "\.sh$" | xargs -I {} git update-index --chmod=+x {}'
- 'find ./scripts/ | grep "\.sh$" | xargs -I {} git update-index --chmod=+x {}'
generate:
desc: generate dockerfile, readme, workflow
cmds:
- git submodule update --init --recursive --checkout -f
- go run main.go generate
- go run main.go generateWorkflow
- go run main.go generateReadme
- go run main.go generateVersionInfo
- git add .github/workflows/build-on-push.yml
- git add README.md
- git add versioninfo.yaml
- ./scripts/generateValues.sh
- pre-commit run --all-files || true
- pre-commit run --all-files
# - task: permission
- git add values/*.yaml
build:
desc: build
cmds:
- go run main.go build --cache-from=false --cache-to=false --push --tag=ghcr.io/zcube/bitnami-compat --platforms=linux/amd64,linux/arm64
# - go run main.go build --cache-from=false --cache-to=false --push --tag=ghcr.io/zcube/bitnami-compat --platforms=linux/amd64,linux/arm64 --app=bitnami-shell
checkCharts:
desc: checkCharts
ignore_error: true
cmds:
- git clone https://github.com/bitnami/charts
- go run main.go checkCharts --level=1
list:
desc: list
cmds:
- go run main.go list
upgrade:
desc: upgrade all bitnami submodules
cmds:
- git submodule update --init --recursive --checkout -f --remote
- git add containers
- git add charts
- go run main.go revisionUp
- git add config.yaml
- task: generate
push:
desc: upgrade all bitnami submodules
cmds:
- git submodule update --init --recursive --checkout -f --remote
- go run main.go revisionUp
- git add config.yaml
# - task: generate
- git commit -am "Update"
- git push
buildUtils:
desc: build docker utils
cmds:
- docker buildx build -f docker/Dockerfile docker -t ghcr.io/zcube/bitnami-compat/version --platform linux/amd64,linux/arm64 --push