diff --git a/config_handler/config_handler.go b/config_handler/config_handler.go index 476fc76..e24e2d9 100644 --- a/config_handler/config_handler.go +++ b/config_handler/config_handler.go @@ -77,8 +77,11 @@ func (p *plugin) Find(ctx context.Context, req *config.Request) (*drone.Config, } if len(modifiedApiList) == 0 && len(modifiedServiceList) == 0 { - // 返回 nil 按照 204 处理 - return nil, nil + // 返回空 + return &drone.Config{ + Data: "", + Kind: "", + }, nil } retData := destinationApi + "\n\n" + destinationService n := strings.LastIndex(retData, "---") diff --git a/go_handler/go_handler_template/go_service_production_pipeline.go b/go_handler/go_handler_template/go_service_production_pipeline.go index 328ffa2..5983ec2 100644 --- a/go_handler/go_handler_template/go_service_production_pipeline.go +++ b/go_handler/go_handler_template/go_service_production_pipeline.go @@ -19,7 +19,7 @@ steps: repo: reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }} registry: reg.icechen.cn tags: - - ${DRONE_TAG} + - "${DRONE_TAG}" - latest dockerfile: ./{{ .Root }}/Dockerfile purge: false