mirror of
https://github.com/OliveTin/OliveTin
synced 2026-10-03 15:07:47 +00:00
Add release into startup
This commit is contained in:
@@ -31,6 +31,8 @@ builds:
|
||||
- goos: windows # Does anyone use Windows on arm64?
|
||||
goarch: arm64
|
||||
|
||||
ldflags:
|
||||
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
|
||||
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
|
||||
@@ -14,10 +14,18 @@ import (
|
||||
|
||||
var (
|
||||
cfg *config.Config
|
||||
version = "dev"
|
||||
commit = "nocommit"
|
||||
date = "nodate"
|
||||
)
|
||||
|
||||
func init() {
|
||||
log.Info("OliveTin initializing")
|
||||
log.WithFields(log.Fields{
|
||||
"version": version,
|
||||
"commit": commit,
|
||||
"date": date,
|
||||
}).Info("OliveTin initializing")
|
||||
|
||||
log.SetLevel(log.DebugLevel) // Default to debug, to catch cfg issues
|
||||
|
||||
viper.AutomaticEnv()
|
||||
|
||||
Reference in New Issue
Block a user