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