mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
0d7b33022c
This commit adjusts the build flags to include version information in the LDFLAGS using the -X options. Additionally this makes the information recorded at build time more comprehensive. All build information can now be obtained via the `authelia build` command, and the `authelia version` command is now `authelia --version`. Lastly this adjusts the Dockerfile to utilize docker cache more effectively.
23 lines
631 B
Go
23 lines
631 B
Go
package main
|
|
|
|
// OutputDir the output directory where the built version of Authelia is located.
|
|
var OutputDir = "dist"
|
|
|
|
// DockerImageName the official name of Authelia docker image.
|
|
var DockerImageName = "authelia/authelia"
|
|
|
|
// IntermediateDockerImageName local name of the docker image.
|
|
var IntermediateDockerImageName = "authelia:dist"
|
|
|
|
var registries = []string{"docker.io", "ghcr.io"}
|
|
|
|
const dockerhub = "docker.io"
|
|
const ghcr = "ghcr.io"
|
|
|
|
const masterTag = "master"
|
|
const stringFalse = "false"
|
|
const stringTrue = "true"
|
|
const webDirectory = "web"
|
|
|
|
const fmtLDFLAGSX = "-X 'github.com/authelia/authelia/internal/utils.%s=%s'"
|