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