fix: 增加 custom 事件
continuous-integration/drone/push Build is passing Details

master
icechen 2022-01-06 16:39:12 +08:00
parent af962cc698
commit ae46c5d396
1 changed files with 2 additions and 0 deletions

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
}