Update .gitlab-ci.yml
This commit is contained in:
parent
287cdbf3ad
commit
8bde10f424
|
|
@ -34,6 +34,9 @@ deploy-staging:dep:
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
- echo "===== start deploy =========="
|
- 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
|
- if [ "$(kubectl get deployment -n $K8S_NS | grep $DEPLOYMENT_NAME | awk '{print $1}')" ]; then
|
||||||
- kubectl rollout restart deployment $DEPLOYMENT_NAME -n $K8S_NS
|
- kubectl rollout restart deployment $DEPLOYMENT_NAME -n $K8S_NS
|
||||||
- fi
|
- fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue