Files
authentik/internal/constants/constants.go
Jens L. 02ae099bdf root: version 2024.8 backport (#11166)
* schemas: fix XML Schema loading...for some reason?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* release: 2024.8.0-rc1

* release: 2024.8.0

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

# Conflicts:
#	.bumpversion.cfg

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
2024-09-03 14:41:40 +02:00

33 lines
501 B
Go

package constants
import (
"fmt"
"os"
)
func BUILD(def string) string {
build := os.Getenv("GIT_BUILD_HASH")
if build == "" {
return def
}
return build
}
func FullVersion() string {
ver := VERSION
if b := BUILD(""); b != "" {
ver = fmt.Sprintf("%s.%s", ver, b)
}
return ver
}
func OutpostUserAgent() string {
return fmt.Sprintf("goauthentik.io/outpost/%s", FullVersion())
}
func UserAgent() string {
return fmt.Sprintf("authentik@%s", FullVersion())
}
const VERSION = "2024.8.0"