fix: 增加 custom 事件
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
icechen 2022-01-06 16:39:12 +08:00
parent af962cc698
commit ae46c5d396

View File

@ -100,6 +100,8 @@ func getGitClient(req *config.Request) git.Client {
func getDeployEnv(req *config.Request) consts.Env {
switch req.Build.Event {
case "push":
fallthrough
case "custom":
if req.Build.Target == "master" {
return consts.EnvTest
}