-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
46 lines (38 loc) · 1.15 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
version: '3'
dotenv: ['.env']
# Prerequisites for this Taskfile to run:
# - https://github.com/helm/chart-releaser
# - https://github.com/norwoodj/helm-docs
# - https://github.com/pawamoy/git-changelog
tasks:
package:
desc: Package the Helm Chart (Don't forget to bump proper version)
cmds:
- task: readme
- task: changelog
- rm -Rf .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:
- cr index -o $GITHUB_USERNAME -r $CHART_NAME -t $GITHUB_TOKEN -i . --push
- rm -rf index.yaml
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
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 .