-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
72 lines (60 loc) · 1.86 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
version: '3'
dotenv: ['.env']
# Prerequisites for this taskfile to run:
# - https://pre-commit.com/#install
# - https://github.com/helm/chart-releaser
# - https://github.com/mbenabda/helm-local-chart-version (install it outside an GIT repo!)
# - https://github.com/norwoodj/helm-docs
# - https://github.com/helm-unittest/helm-unittest/
# - https://github.com/pawamoy/git-changelog
tasks:
package:
desc: Package the Helm Chart (Don't forget to bump proper version)
cmds:
- task: unittest
- task: readme
- task: changelog
- rm -R .cr-release-packages/
- cr package
upload:
desc: Uploads the Helm Chart as release to GitHub
cmds:
- cr upload -o $GITHUB_USERNAME -r $CHART_NAME -t $GITHUB_TOKEN
index:
desc: Creates or updates the index file and pushes it to the default github pages branch
cmds:
#- pre-commit uninstall
- cr index -o $GITHUB_USERNAME -r $CHART_NAME -t $GITHUB_TOKEN -i . --push
- rm -f index.yaml
#- pre-commit install
publish:
desc: Execute all steps for a Helm Chart deployment on GitHub-Pages (Don't forget to bump proper version)
cmds:
- task: package
- task: upload
- task: index
bumpPatchVersion:
desc: Increments the charts patch-version
cmds:
- helm local-chart-version bump -c . -s patch
bumpMinorVersion:
desc: Increments the charts minor-version
cmds:
- helm local-chart-version bump -c . -s minor
bumpMajorVersion:
desc: Increments the charts major-version
cmds:
- helm local-chart-version bump -c . -s major
unittest:
desc: Run all unittests
cmds:
- helm unittest .
readme:
desc: Build readme
cmds:
- helm-docs
changelog:
desc: Generate Changelog
cmds:
- rm -f CHANGELOG.md
- git-changelog -o CHANGELOG.md -c conventional -t keepachangelog .