1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(stacks): pass WorkingDir to deployer command EE-5142 (#8615)

This commit is contained in:
matias-portainer 2023-03-08 19:34:57 -03:00 committed by GitHub
parent 9cca299833
commit fb6e26a302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")
} }