mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
fix(git): update stack name for git stacks [EE-6670] (#11217)
This commit is contained in:
parent
ce3a1b8ba5
commit
988d4103d4
5 changed files with 13 additions and 0 deletions
|
@ -27,6 +27,8 @@ type stackGitRedployPayload struct {
|
|||
Prune bool
|
||||
// Force a pulling to current image with the original tag though the image is already the latest
|
||||
PullImage bool `example:"false"`
|
||||
|
||||
StackName string
|
||||
}
|
||||
|
||||
func (payload *stackGitRedployPayload) Validate(r *http.Request) error {
|
||||
|
@ -136,6 +138,10 @@ func (handler *Handler) stackGitRedeploy(w http.ResponseWriter, r *http.Request)
|
|||
}
|
||||
}
|
||||
|
||||
if payload.StackName != "" {
|
||||
stack.Name = payload.StackName
|
||||
}
|
||||
|
||||
repositoryUsername := ""
|
||||
repositoryPassword := ""
|
||||
if payload.RepositoryAuthentication {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue