Add GitSHA variable

This commit is contained in:
Carl Pearson
2024-09-11 08:43:58 -06:00
parent e50ff37215
commit ca86caee85
4 changed files with 18 additions and 2 deletions

View File

@@ -39,3 +39,15 @@ func getSessionAuthKey() ([]byte, error) {
}
return []byte{}, errors.New(fmt.Sprintf("please set %s", key))
}
var GitSHA string
func getGitSHA() string {
if GitSHA == "" {
return "<not provided>"
} else {
return GitSHA
}
}