mirror of https://github.com/portainer/portainer
fix(stacks): pass WorkingDir to deployer command EE-5142 (#8624)
parent
89194405ee
commit
69f14e569b
|
@ -82,9 +82,11 @@ func (manager *ComposeStackManager) Down(ctx context.Context, stack *portainer.S
|
||||||
}
|
}
|
||||||
|
|
||||||
err = manager.deployer.Remove(ctx, stack.Name, nil, libstack.Options{
|
err = manager.deployer.Remove(ctx, stack.Name, nil, libstack.Options{
|
||||||
|
WorkingDir: stack.ProjectPath,
|
||||||
EnvFilePath: envFilePath,
|
EnvFilePath: envFilePath,
|
||||||
Host: url,
|
Host: url,
|
||||||
})
|
})
|
||||||
|
|
||||||
return errors.Wrap(err, "failed to remove a stack")
|
return errors.Wrap(err, "failed to remove a stack")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue