From 8bb68ce7ed6462b627569a7d08435d76029eff3b Mon Sep 17 00:00:00 2001 From: icechen Date: Wed, 29 Dec 2021 21:26:54 +0800 Subject: [PATCH] fix HasPrefix --- config_handler/destination_config.go | 2 +- go_handler/go_api_handler.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config_handler/destination_config.go b/config_handler/destination_config.go index 00ea760..1d0e29c 100644 --- a/config_handler/destination_config.go +++ b/config_handler/destination_config.go @@ -49,7 +49,7 @@ func (s Service) toDestinationConfig(nameSpace string) (string, error) { var handler Handler switch s.Type { case go_handler.TypeGolang: - handler = go_handler.GoApiHandler{ + handler = go_handler.GoServiceHandler{ NameSpace: nameSpace, Name: s.Name, Root: s.Root, diff --git a/go_handler/go_api_handler.go b/go_handler/go_api_handler.go index 2321aa2..b33b1e3 100644 --- a/go_handler/go_api_handler.go +++ b/go_handler/go_api_handler.go @@ -26,6 +26,7 @@ steps: repo: reg.icechen.cn/{{ .NameSpace }}/{{ .Name }} registry: reg.icechen.cn tags: ${DRONE_COMMIT:0:8} + dockerfile: /app/api/{{ .Name }}/Dockerfile - name: run image: docker