fix: respect COMPOSE_FILE when loading compose files

Final part of coop-cloud/go-abra#57.
This commit is contained in:
2021-09-04 22:02:49 +02:00
parent a8f30426ea
commit e68c7fc71c
4 changed files with 38 additions and 23 deletions

View File

@ -14,6 +14,7 @@ import (
"coopcloud.tech/abra/cli/formatter"
"coopcloud.tech/abra/cli/internal"
"coopcloud.tech/abra/client"
"coopcloud.tech/abra/client/stack"
"coopcloud.tech/abra/config"
"coopcloud.tech/tagcmp"
@ -182,7 +183,7 @@ This is step 1 of upgrading a recipe. Step 2 is running "abra recipe sync
logrus.Fatal(err)
}
compose, err := config.GetAppComposeFiles(recipe, appEnv.Env)
compose, err := config.GetAppComposeConfig(recipe, stack.Deploy{}, appEnv.Env)
if err != nil {
logrus.Fatal(err)
}
@ -312,7 +313,7 @@ the versioning metadata of up-and-running containers are.
logrus.Fatal(err)
}
compose, err := config.GetAppComposeFiles(recipe, appEnv.Env)
compose, err := config.GetAppComposeConfig(recipe, stack.Deploy{}, appEnv.Env)
if err != nil {
logrus.Fatal(err)
}
@ -370,7 +371,7 @@ var recipeLintCommand = &cli.Command{
logrus.Fatal(err)
}
compose, err := config.GetAppComposeFiles(recipe, appEnv.Env)
compose, err := config.GetAppComposeConfig(recipe, stack.Deploy{}, appEnv.Env)
if err != nil {
logrus.Fatal(err)
}