fix: add host
continuous-integration/drone/push Build is passing Details

master
icechen 2022-01-04 19:37:59 +08:00
parent f2b6573ff1
commit 8a218d07cb
3 changed files with 8 additions and 0 deletions

View File

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

View File

@ -39,4 +39,6 @@ steps:
- image=reg.icechen.cn/{{ .NameSpace }}/api-{{ .Name }} - image=reg.icechen.cn/{{ .NameSpace }}/api-{{ .Name }}
- imageTag=${DRONE_TAG} - imageTag=${DRONE_TAG}
- port={{ .Port }} - port={{ .Port }}
- host=t{{ .Host }}
- path={{ .Path }}
` `

View File

@ -39,4 +39,6 @@ steps:
- image=reg.icechen.cn/{{ .NameSpace }}/api-{{ .Name }} - image=reg.icechen.cn/{{ .NameSpace }}/api-{{ .Name }}
- imageTag=${DRONE_COMMIT:0:8} - imageTag=${DRONE_COMMIT:0:8}
- port={{ .Port }} - port={{ .Port }}
- host=t{{ .Host }}
- path={{ .Path }}
` `