create tasks for get current version and create tags

This commit is contained in:
skeris 2024-09-01 01:21:57 +03:00
parent 15785503ce
commit 2af6a6c4d1
2 changed files with 15 additions and 1 deletions

@ -1,4 +1,4 @@
#v1.0.0
#v1.0.1
INTERNAL:

@ -1,5 +1,10 @@
version: "3"
vars:
VERSION:
sh: head -n 1 ./CHANGELOG.md | cut -c 2-
tasks:
update-linter:
cmds:
@ -8,3 +13,12 @@ tasks:
cmds:
- task: update-linter
- cmd: golangci-lint run -v -c $(go list -f '{{"{{"}}.Dir{{"}}"}}' -m penahub.gitlab.yandexcloud.net/devops/linters/golang.git)/.golangci.yml
version:
cmds:
- echo "{{.VERSION}}"
tag-create:
cmds:
- git tag {{.VERSION}}
tag-remove:
cmds:
- git tag -d {{.VERSION}}