From 7074461935c1bf9e954842a0b0345526c2e95fca Mon Sep 17 00:00:00 2001 From: icechen Date: Mon, 3 Jan 2022 01:15:04 +0800 Subject: [PATCH] update --- .../go_handler_template/go_service_production_pipeline.go | 2 +- go_handler/go_handler_template/go_service_test_pipeline.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: