From 9a55c82e1b6ea3d02e24d520ec7733c79f41cdbc Mon Sep 17 00:00:00 2001 From: chenwj113 <654891551@qq.com> Date: Thu, 16 Feb 2023 09:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0gitlab=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b08d683..cbcd499 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,12 +14,12 @@ stages: - build - deploy -deploy-staging:dep: +build-staging:dep: stage: build only: - - master - tags: - $TAG + tags: + - master script: - echo "===== start build ==========" - docker build -t ${IMAGE_NAME} . @@ -30,9 +30,9 @@ deploy-staging:dep: deploy-staging:dep: stage: deploy only: - - master - tags: - $TAG + tags: + - master script: - echo "===== start deploy ==========" - if [ "$(kubectl get deployment -n $K8S_NS | grep $DEPLOYMENT_NAME | awk '{print $1}')" ]; then