This commit is contained in:
parent
c692e34fdf
commit
dde1f825cc
2 changed files with 4 additions and 4 deletions
|
|
@ -451,14 +451,14 @@ func TriggerTagUpdate(c *gin.Context, work *Work, repo *Repository, u *User, tag
|
|||
}
|
||||
|
||||
client := drone.NewClient(droneEndpoint, droneConfig)
|
||||
result, err := client.BuildCreate("srs", "atsebay.t-worker", "", "master", env)
|
||||
result, err := client.BuildCreate("teach", "atsebay.t-worker", "", "master", env)
|
||||
if err != nil {
|
||||
log.Println("Unable to communicate with Drone:", err.Error())
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "Unable to communication with the extraction service."})
|
||||
return
|
||||
}
|
||||
|
||||
repo.DroneRef = fmt.Sprintf("%s/%s/%d", "srs", "atsebay.t-worker", result.Number)
|
||||
repo.DroneRef = fmt.Sprintf("%s/%s/%d", "teach", "atsebay.t-worker", result.Number)
|
||||
repo.LastCheck = &now
|
||||
repo.Update()
|
||||
|
||||
|
|
|
|||
Reference in a new issue