outposts: include git commit hash in build from git branch

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-12 18:56:44 +02:00
parent e9aa37ba67
commit 37b57ac28f
4 changed files with 8 additions and 1 deletions

View File

@ -33,7 +33,8 @@ func doGlobalSetup(config map[string]interface{}) {
default:
log.SetLevel(log.DebugLevel)
}
log.WithField("version", pkg.VERSION).Info("Starting authentik outpost")
buildHash := os.Getenv("GIT_BUILD_HASH")
log.WithField("buildHash", buildHash).WithField("version", pkg.VERSION).Info("Starting authentik outpost")
var dsn string
if config[ConfigErrorReportingEnabled].(bool) {