Update .gitlab-ci.yml

This commit is contained in:
chenwj113 2023-02-16 13:55:34 +08:00
parent 4cf73561ea
commit 6b2dce4811
1 changed files with 0 additions and 1 deletions

View File

@ -35,7 +35,6 @@ deploy-staging:dep:
script:
- echo "===== start deploy =========="
- echo $CI_COMMIT_TAG
- # 判断当前分支是否为dev开发分支否则不重启容器服务
- if [[ $CI_COMMIT_TAG == 'dev' ]] && [[ "$(kubectl get deployment -n $K8S_NS | grep $DEPLOYMENT_NAME | awk '{print $1}')" ]]; then
- kubectl rollout restart deployment $DEPLOYMENT_NAME -n $K8S_NS
- fi