forked from coop-cloud/abra
feat: allow to override STACK_NAME
This commit is contained in:
parent
7368cabc49
commit
e9113500d8
|
@ -31,7 +31,10 @@ var appDeployCommand = &cli.Command{
|
|||
for k, v := range abraShEnv {
|
||||
app.Env[k] = v
|
||||
}
|
||||
app.Env["STACK_NAME"] = app.StackName()
|
||||
|
||||
if _, exists := app.Env["STACK_NAME"]; !exists {
|
||||
app.Env["STACK_NAME"] = app.StackName()
|
||||
}
|
||||
|
||||
composeFiles, err := config.GetAppComposeFiles(app.Type, app.Env)
|
||||
if err != nil {
|
||||
|
@ -39,7 +42,7 @@ var appDeployCommand = &cli.Command{
|
|||
}
|
||||
deployOpts := stack.Deploy{
|
||||
Composefiles: composeFiles,
|
||||
Namespace: app.StackName(),
|
||||
Namespace: app.Env["STACK_NAME"],
|
||||
Prune: false,
|
||||
ResolveImage: stack.ResolveImageAlways,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue