refactor(ci): Set application version by ci on build

This commit is contained in:
2025-08-20 01:37:44 +03:00
parent fb6e444309
commit d4670df678
2 changed files with 6 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ builds:
- linux
- windows
- darwin
ldflags:
- -s -w
- -X 'git.ostiwe.com/ostiwe-com/status/version/version.ApplicationVersion={{.Tag}}'
archives:
- formats: [tar.gz]

View File

@@ -1,5 +1,7 @@
package version
var ApplicationVersion string = "dev" // These value will be injected at build time, DO NOT EDIT.
func AppVersion() string {
return "1.0.1"
return ApplicationVersion
}