From a111b75664d9ae867675721a381ea5eb9ae11694 Mon Sep 17 00:00:00 2001 From: icechen Date: Sun, 9 Jan 2022 17:42:16 +0800 Subject: [PATCH] update --- config_handler/config_handler.go | 7 +++++-- .../go_handler_template/go_service_production_pipeline.go | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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