From 6648d691966c072f1b4c4e75631094f74ac1ba08 Mon Sep 17 00:00:00 2001 From: icechen Date: Wed, 29 Dec 2021 20:28:37 +0800 Subject: [PATCH] update --- config_handler/config_handler.go | 4 +++- go_handler/go_api_handler.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config_handler/config_handler.go b/config_handler/config_handler.go index 73648dd..cb662a6 100644 --- a/config_handler/config_handler.go +++ b/config_handler/config_handler.go @@ -64,9 +64,11 @@ func (p *plugin) Find(ctx context.Context, req *config.Request) (*drone.Config, return nil, err } + retData := destinationApi + "\n\n" + destinationService + logrus.Info(retData) // 5. 组装所有ci信息并输出 return &drone.Config{ - Data: destinationApi + "\n\n" + destinationService, + Data: retData, Kind: "pipeline", }, nil } diff --git a/go_handler/go_api_handler.go b/go_handler/go_api_handler.go index 6da122a..2321aa2 100644 --- a/go_handler/go_api_handler.go +++ b/go_handler/go_api_handler.go @@ -34,7 +34,7 @@ steps: path: /var/run/docker.sock commands: - docker rm -f {{ .NameSpace }}-{{ .Name }} - - docker run -d --name="{{ .NameSpace }}-{{ .Name }}" reg.icechen.cn/{{ .NameSpace }}/{{ .Name }}:${DRONE_COMMIT:0:8} + - docker run -d --name="{{ .NameSpace }}-{{ .Name }}" --network="nginx-net" reg.icechen.cn/{{ .NameSpace }}/{{ .Name }}:${DRONE_COMMIT:0:8} volumes: - name: docker