This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-18 23:29:49 +00:00
|
|
|
package pkg
|
|
|
|
|
2021-05-12 17:02:04 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
2021-05-22 18:15:23 +00:00
|
|
|
const VERSION = "2021.5.4"
|
2021-05-12 17:02:04 +00:00
|
|
|
|
|
|
|
func BUILD() string {
|
2021-06-06 21:07:23 +00:00
|
|
|
build := os.Getenv("GIT_BUILD_HASH")
|
|
|
|
if build == "" {
|
|
|
|
return "tagged"
|
|
|
|
}
|
|
|
|
return build
|
2021-05-12 17:02:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func UserAgent() string {
|
|
|
|
return fmt.Sprintf("authentik-outpost@%s (%s)", VERSION, BUILD())
|
|
|
|
}
|