fix: override version from CLI

See coop-cloud/organising#541
This commit is contained in:
2024-07-17 10:07:47 +02:00
parent 8084bff104
commit 9b0b3c2e4c
3 changed files with 17 additions and 3 deletions

View File

@ -59,6 +59,11 @@ EXAMPLE:
log.Fatal("cannot use <version> and --chaos together")
}
if specificVersion != "" {
log.Debugf("overriding env file version (%s) with %s", app.Recipe.Version, specificVersion)
app.Recipe.Version = specificVersion
}
if specificVersion == "" && app.Recipe.Version != "" {
log.Debugf("retrieved %s as version from env file", app.Recipe.Version)
specificVersion = app.Recipe.Version