Skip to content

Commit 4ae2c5d

Browse files
author
Utku Ozdemir
committed
build: add taskfile
1 parent 0a6a3fb commit 4ae2c5d

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Taskfile.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: "3"
2+
3+
tasks:
4+
fmt:
5+
desc: gofumpt all code
6+
cmds:
7+
- gofumpt -w -l .
8+
- gci -w .
9+
10+
lint:
11+
desc: Lint the code with golangci-lint
12+
cmds:
13+
- golangci-lint run ./...
14+
- helm lint helm/pv-migrate
15+
16+
update-chart:
17+
desc: Update the Helm chart
18+
cmds:
19+
- helm-docs -c helm/pv-migrate/
20+
- helm package helm/pv-migrate/
21+
- mv pv-migrate-*.tgz internal/migrator/helm-chart.tgz
22+
23+
release:
24+
desc: Create a new tag
25+
vars:
26+
NEXT:
27+
sh: svu n
28+
cmds:
29+
- git tag {{.NEXT}}
30+
- echo {{.NEXT}}
31+
- git push origin {{.NEXT}}

0 commit comments

Comments
 (0)