Write version into main.go

This commit is contained in:
Alexander Neumann
2020-05-22 17:41:47 +02:00
parent fa516da2c4
commit 4171164a39
2 changed files with 11 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ before:
- test -n "{{ .Env.VERSION }}"
# make sure the file VERSION contains the latest version (used for build.go)
- bash -c 'echo "{{ .Env.VERSION }}" > VERSION'
# make sure that mani.go contains the latest version
- sed -i 's/var version = "[^"]*"/var version = "${VERSION}"/' cmd/rest-server/main.go
# make sure the file CHANGELOG.md is up to date
- calens --output CHANGELOG.md