add github deployment environment to build.Deploy
This commit is contained in:
parent
9a232485bf
commit
37a8a6d4e9
1 changed files with 1 additions and 0 deletions
|
@ -442,6 +442,7 @@ func (g *Github) deployment(r *http.Request) (*model.Repo, *model.Build, error)
|
||||||
build.Author = hook.Sender.Login
|
build.Author = hook.Sender.Login
|
||||||
build.Ref = hook.Deployment.Ref
|
build.Ref = hook.Deployment.Ref
|
||||||
build.Branch = hook.Deployment.Ref
|
build.Branch = hook.Deployment.Ref
|
||||||
|
build.Deploy = hook.Deployment.Env
|
||||||
|
|
||||||
// if the ref is a sha or short sha we need to manually
|
// if the ref is a sha or short sha we need to manually
|
||||||
// construct the ref.
|
// construct the ref.
|
||||||
|
|
Loading…
Reference in a new issue