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 81ab626..f519564 100644 --- a/go_handler/go_handler_template/go_api_production_pipeline.go +++ b/go_handler/go_handler_template/go_api_production_pipeline.go @@ -15,7 +15,7 @@ steps: from_secret: reg_password repo: reg.icechen.cn/{{ .NameSpace }}/api-{{ .Name }} registry: reg.icechen.cn - tags: + tags: - ${DRONE_TAG} - latest dockerfile: ./{{ .Root }}/Dockerfile 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 de3a6e5..3e39402 100644 --- a/go_handler/go_handler_template/go_api_test_pipeline.go +++ b/go_handler/go_handler_template/go_api_test_pipeline.go @@ -15,7 +15,7 @@ steps: from_secret: reg_password repo: reg.icechen.cn/{{ .NameSpace }}/api-{{ .Name }} registry: reg.icechen.cn - tags: + tags: - ${DRONE_COMMIT:0:8} - latest dockerfile: ./{{ .Root }}/Dockerfile 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 755d9e5..86991f2 100644 --- a/go_handler/go_handler_template/go_service_production_pipeline.go +++ b/go_handler/go_handler_template/go_service_production_pipeline.go @@ -15,7 +15,7 @@ steps: from_secret: reg_password repo: reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }} registry: reg.icechen.cn - tags: + tags: - ${DRONE_TAG} - latest dockerfile: ./{{ .Root }}/Dockerfile 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 356ce7e..40aae13 100644 --- a/go_handler/go_handler_template/go_service_test_pipeline.go +++ b/go_handler/go_handler_template/go_service_test_pipeline.go @@ -15,7 +15,7 @@ steps: from_secret: reg_password repo: reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }} registry: reg.icechen.cn - tags: + tags: - ${DRONE_COMMIT:0:8} - latest dockerfile: ./{{ .Root }}/Dockerfile