update
continuous-integration/drone/push Build is passing Details

master
icechen 2022-01-09 17:42:16 +08:00
parent 7e6e013df0
commit a111b75664
2 changed files with 6 additions and 3 deletions

View File

@ -77,8 +77,11 @@ func (p *plugin) Find(ctx context.Context, req *config.Request) (*drone.Config,
} }
if len(modifiedApiList) == 0 && len(modifiedServiceList) == 0 { if len(modifiedApiList) == 0 && len(modifiedServiceList) == 0 {
// 返回 nil 按照 204 处理 // 返回空
return nil, nil return &drone.Config{
Data: "",
Kind: "",
}, nil
} }
retData := destinationApi + "\n\n" + destinationService retData := destinationApi + "\n\n" + destinationService
n := strings.LastIndex(retData, "---") n := strings.LastIndex(retData, "---")

View File

@ -19,7 +19,7 @@ steps:
repo: reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }} repo: reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}
registry: reg.icechen.cn registry: reg.icechen.cn
tags: tags:
- ${DRONE_TAG} - "${DRONE_TAG}"
- latest - latest
dockerfile: ./{{ .Root }}/Dockerfile dockerfile: ./{{ .Root }}/Dockerfile
purge: false purge: false