Fix version flag

This commit is contained in:
2022-02-14 17:15:11 +01:00
parent b602aa5e39
commit 722c7424d0
3 changed files with 17 additions and 10 deletions

View File

@@ -11,13 +11,14 @@ import (
"strings"
)
var composeFiles = []string{"docker-compose.yaml", "docker-compose.yml"}
var ComposeFile = ""
var AppName = "MyApp"
var Version = "master" // set at build time to the git version/tag
var ChartsDir = "chart"
var AppVersion = "0.0.1"
var (
composeFiles = []string{"docker-compose.yaml", "docker-compose.yml"}
ComposeFile = ""
AppName = "MyApp"
ChartsDir = "chart"
Version = "master"
AppVersion = "0.0.1"
)
func init() {
FindComposeFile()