From 3882283ccdea4c5d0c8daf5fa608142d4160fe09 Mon Sep 17 00:00:00 2001 From: icechen Date: Tue, 4 Jan 2022 01:08:31 +0800 Subject: [PATCH] update --- go_handler/go_handler_template/go_api_production_pipeline.go | 3 ++- go_handler/go_handler_template/go_api_test_pipeline.go | 3 ++- .../go_handler_template/go_service_production_pipeline.go | 3 ++- go_handler/go_handler_template/go_service_test_pipeline.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) 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 58ded0a..d09fd99 100644 --- a/go_handler/go_handler_template/go_api_production_pipeline.go +++ b/go_handler/go_handler_template/go_api_production_pipeline.go @@ -30,7 +30,8 @@ steps: kubernetes_token: from_secret: kubernetes_token commands: - - echo ` + ApiProductionDeploy + ` | kubectl apply -f - + - |- +echo ` + ApiProductionDeploy + ` | kubectl apply -f - # - kubectl wait --for=condition=Ready --timeout=300s -f deploy/deployment.yaml ` 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 73c6762..703280b 100644 --- a/go_handler/go_handler_template/go_api_test_pipeline.go +++ b/go_handler/go_handler_template/go_api_test_pipeline.go @@ -30,7 +30,8 @@ steps: kubernetes_token: from_secret: kubernetes_token_test commands: - - echo ` + ApiTestDeploy + ` | kubectl apply -f - + - |- +echo ` + ApiTestDeploy + ` | kubectl apply -f - # - kubectl wait --for=condition=Ready --timeout=300s -f deploy/deployment.yaml ` 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 f3b8cbc..01b82b7 100644 --- a/go_handler/go_handler_template/go_service_production_pipeline.go +++ b/go_handler/go_handler_template/go_service_production_pipeline.go @@ -30,7 +30,8 @@ steps: kubernetes_token: from_secret: kubernetes_token commands: - - echo ` + ServiceProductionDeploy + ` | kubectl apply -f - + - |- +echo ` + ServiceProductionDeploy + ` | kubectl apply -f - # - kubectl wait --for=condition=Ready --timeout=300s -f deploy/deployment.yaml ` 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 2eccd50..4010309 100644 --- a/go_handler/go_handler_template/go_service_test_pipeline.go +++ b/go_handler/go_handler_template/go_service_test_pipeline.go @@ -30,7 +30,8 @@ steps: kubernetes_token: from_secret: kubernetes_token_test commands: - - echo ` + ServiceTestDeploy + ` | kubectl apply -f - + - |- +echo ` + ServiceTestDeploy + ` | kubectl apply -f - # - kubectl wait --for=condition=Ready --timeout=300s -f deploy/deployment.yaml `