fix: 增加 custom 事件
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
af962cc698
commit
ae46c5d396
|
@ -100,6 +100,8 @@ func getGitClient(req *config.Request) git.Client {
|
||||||
func getDeployEnv(req *config.Request) consts.Env {
|
func getDeployEnv(req *config.Request) consts.Env {
|
||||||
switch req.Build.Event {
|
switch req.Build.Event {
|
||||||
case "push":
|
case "push":
|
||||||
|
fallthrough
|
||||||
|
case "custom":
|
||||||
if req.Build.Target == "master" {
|
if req.Build.Target == "master" {
|
||||||
return consts.EnvTest
|
return consts.EnvTest
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue