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 9252300..ab59c51 100644 --- a/go_handler/go_handler_template/go_service_production_pipeline.go +++ b/go_handler/go_handler_template/go_service_production_pipeline.go @@ -24,7 +24,7 @@ steps: - name: docker path: /var/run/docker.sock commands: - - docker rm -f {{ .NameSpace }}-api-{{ .Name }} + - docker rm -f {{ .NameSpace }}-service-{{ .Name }} - docker run -d --name="{{ .NameSpace }}-service-{{ .Name }}" --network="nginx-net"{{ range $key, $value := .ServiceEnv }} --env {{ $key }}={{ $value }} {{ end }}reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}:${DRONE_COMMIT:0:8} volumes: diff --git a/go_handler/go_handler_template/go_service_test_pipeline.go b/go_handler/go_handler_template/go_service_test_pipeline.go index 0e69998..6500df0 100644 --- a/go_handler/go_handler_template/go_service_test_pipeline.go +++ b/go_handler/go_handler_template/go_service_test_pipeline.go @@ -24,7 +24,7 @@ steps: - name: docker path: /var/run/docker.sock commands: - - docker rm -f {{ .NameSpace }}-api-{{ .Name }} + - docker rm -f {{ .NameSpace }}-service-{{ .Name }} - docker run -d --name="{{ .NameSpace }}-service-{{ .Name }}" --network="nginx-net"{{ range $key, $value := .ServiceEnv }} --env {{ $key }}={{ $value }} {{ end }}reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }}:${DRONE_COMMIT:0:8} volumes: