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

pull/8630/head
matias-portainer 2 years ago committed by GitHub
parent 9cca299833
commit fb6e26a302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save