-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
54 lines (47 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
47
48
49
50
51
52
53
54
version: "3"
includes:
keygen: ./keygen
links: ./links
redirects: ./redirects
tasks:
ensure_main:
internal: true
desc: Ensure we are on main branch
cmds:
- git checkout master
- git fetch
- git rebase origin/master
tag_release:
internal: true
desc: Tag a new release
cmds:
- git add .semver.yaml
- git commit -m "release $(semver get release)"
- git push origin master:master
- gh release create --draft $(semver get release) --target master --generate-notes
- gh release view $(semver get release) --web
release:patch:
desc: Release a new patch version
deps:
- ensure_main
cmds:
- semver up release
- task: tag_release
release:minor:
desc: Release a new minor version
deps:
- ensure_main
cmds:
- semver up minor
- task: tag_release
release:major:
desc: Release a new major version
deps:
- ensure_main
cmds:
- semver up major
- task: tag_release
deploy:k8s:
desc: Deploy to k8s
cmds:
- kubectl kustomize --load-restrictor LoadRestrictionsNone _deploy_/k8s | kubectl apply -f -