Update .gitlab-ci.yml

This commit is contained in:
chenwj113 2023-02-16 13:41:55 +08:00
parent 287cdbf3ad
commit 8bde10f424
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ deploy-staging:dep:
- master
script:
- echo "===== start deploy =========="
- if [ $CI_COMMIT_TAG == 'dev' ]; then
- echo "'dev' branch commit!"
- if
- if [ "$(kubectl get deployment -n $K8S_NS | grep $DEPLOYMENT_NAME | awk '{print $1}')" ]; then
- kubectl rollout restart deployment $DEPLOYMENT_NAME -n $K8S_NS
- fi