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 {
|
for k, v := range abraShEnv {
|
||||||
app.Env[k] = v
|
app.Env[k] = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if _, exists := app.Env["STACK_NAME"]; !exists {
|
||||||
app.Env["STACK_NAME"] = app.StackName()
|
app.Env["STACK_NAME"] = app.StackName()
|
||||||
|
}
|
||||||
|
|
||||||
composeFiles, err := config.GetAppComposeFiles(app.Type, app.Env)
|
composeFiles, err := config.GetAppComposeFiles(app.Type, app.Env)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -39,7 +42,7 @@ var appDeployCommand = &cli.Command{
|
||||||
}
|
}
|
||||||
deployOpts := stack.Deploy{
|
deployOpts := stack.Deploy{
|
||||||
Composefiles: composeFiles,
|
Composefiles: composeFiles,
|
||||||
Namespace: app.StackName(),
|
Namespace: app.Env["STACK_NAME"],
|
||||||
Prune: false,
|
Prune: false,
|
||||||
ResolveImage: stack.ResolveImageAlways,
|
ResolveImage: stack.ResolveImageAlways,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue