Also pass group in drone environment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f4b2eec979
commit
9b37ca082f
@ -402,10 +402,12 @@ func TriggerTagUpdate(c *gin.Context, work *Work, repo *Repository, u *User, tag
|
||||
}
|
||||
|
||||
login := u.Login
|
||||
groups := u.Groups
|
||||
if u.Id != repo.IdUser {
|
||||
user, _ := getUser(int(repo.IdUser))
|
||||
if user != nil {
|
||||
login = user.Login
|
||||
groups = user.Groups
|
||||
}
|
||||
}
|
||||
|
||||
@ -414,6 +416,7 @@ func TriggerTagUpdate(c *gin.Context, work *Work, repo *Repository, u *User, tag
|
||||
"REPO_URL": repo.URI,
|
||||
"REPO_TAG": repo_tag,
|
||||
"LOGIN": login,
|
||||
"GROUPS": groups,
|
||||
"DEST": fmt.Sprintf("%d", work.Id),
|
||||
})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user