customer/Taskfile.dist.yml

25 lines
518 B
YAML
Raw Normal View History

2024-08-23 13:12:20 +00:00
version: "3"
vars:
VERSION:
sh: head -n 1 ./CHANGELOG.md | cut -c 2-
2024-08-23 13:12:20 +00:00
tasks:
update-linter:
cmds:
- go get -u penahub.gitlab.yandexcloud.net/devops/linters/golang.git
lint:
cmds:
- task: update-linter
- cmd: golangci-lint run -v -c $(go list -f '{{"{{"}}.Dir{{"}}"}}' -m gitea.pena/PenaSide/linters-golang)/.golangci.yml
version:
cmds:
- echo "{{.VERSION}}"
tag-create:
cmds:
- git tag {{.VERSION}}
tag-remove:
cmds:
- git tag -d {{.VERSION}}