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}