mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Docker+Build optimizations (#1833)
* Docker CI builds: half the size, less than half the build time * Add an "Official Build" Designator * Fix .git constantly invalidating build cache, use distro ffmpeg * Fix official build detection, add some compiler image docs Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7732152c0c
commit
f80a5e3222
@@ -34,6 +34,7 @@ import (
|
||||
var version string
|
||||
var buildstamp string
|
||||
var githash string
|
||||
var officialBuild string
|
||||
|
||||
func Start(uiBox embed.FS, loginUIBox embed.FS) {
|
||||
initialiseImages()
|
||||
@@ -255,12 +256,21 @@ func Start(uiBox embed.FS, loginUIBox embed.FS) {
|
||||
|
||||
func printVersion() {
|
||||
versionString := githash
|
||||
if IsOfficialBuild() {
|
||||
versionString += " - Official Build"
|
||||
} else {
|
||||
versionString += " - Unofficial Build"
|
||||
}
|
||||
if version != "" {
|
||||
versionString = version + " (" + versionString + ")"
|
||||
}
|
||||
fmt.Printf("stash version: %s - %s\n", versionString, buildstamp)
|
||||
}
|
||||
|
||||
func IsOfficialBuild() bool {
|
||||
return officialBuild == "true"
|
||||
}
|
||||
|
||||
func GetVersion() (string, string, string) {
|
||||
return version, githash, buildstamp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user