From d7de7996ff23494c7df30c27d5c8224751c146f3 Mon Sep 17 00:00:00 2001 From: icechen Date: Tue, 11 Jan 2022 02:02:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=20AppName=20?= =?UTF-8?q?=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go_handler/go_handler_template/go_api_production_pipeline.go | 1 + go_handler/go_handler_template/go_api_test_pipeline.go | 1 + .../go_handler_template/go_service_production_pipeline.go | 1 + go_handler/go_handler_template/go_service_test_pipeline.go | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/go_handler/go_handler_template/go_api_production_pipeline.go b/go_handler/go_handler_template/go_api_production_pipeline.go index c1ef897..5dd340c 100644 --- a/go_handler/go_handler_template/go_api_production_pipeline.go +++ b/go_handler/go_handler_template/go_api_production_pipeline.go @@ -34,6 +34,7 @@ steps: namespace: {{ .NameSpace }} values: - nameSpace={{ .NameSpace }} + - appName={{ .Name }} - aliasName={{ .AliasName }} - image={{ .Reg.Registry }}/{{ .NameSpace }}/api-{{ .Name }} - imageTag=${DRONE_TAG} diff --git a/go_handler/go_handler_template/go_api_test_pipeline.go b/go_handler/go_handler_template/go_api_test_pipeline.go index b80dc87..8605ea4 100644 --- a/go_handler/go_handler_template/go_api_test_pipeline.go +++ b/go_handler/go_handler_template/go_api_test_pipeline.go @@ -34,6 +34,7 @@ steps: namespace: {{ .NameSpace }} values: - nameSpace={{ .NameSpace }} + - appName={{ .Name }} - aliasName={{ .AliasName }} - image={{ .Reg.Registry }}/{{ .NameSpace }}/api-{{ .Name }} - imageTag=${DRONE_COMMIT:0:8} 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 6c40ce0..6671b2e 100644 --- a/go_handler/go_handler_template/go_service_production_pipeline.go +++ b/go_handler/go_handler_template/go_service_production_pipeline.go @@ -34,6 +34,7 @@ steps: namespace: {{ .NameSpace }} values: - nameSpace={{ .NameSpace }} + - appName={{ .Name }} - aliasName={{ .AliasName }} - image={{ .Reg.Registry }}/{{ .NameSpace }}/service-{{ .Name }} - imageTag=${DRONE_TAG} 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 3e3bcc7..60adf4f 100644 --- a/go_handler/go_handler_template/go_service_test_pipeline.go +++ b/go_handler/go_handler_template/go_service_test_pipeline.go @@ -1,6 +1,6 @@ package go_handler_template -const ServiceTestPipeline = ` +const ServiceTestPipeline string = ` kind: pipeline type: docker name: 部署test-service-{{ .Name }}.{{ .NameSpace }} @@ -34,6 +34,7 @@ steps: namespace: {{ .NameSpace }} values: - nameSpace={{ .NameSpace }} + - appName={{ .Name }} - aliasName={{ .AliasName }} - image={{ .Reg.Registry }}/{{ .NameSpace }}/service-{{ .Name }} - imageTag=${DRONE_COMMIT:0:8}