更新gitlab CI/CD

This commit is contained in:
chenwj113 2023-02-16 09:54:13 +08:00
parent d28d9de272
commit 9a55c82e1b
1 changed files with 5 additions and 5 deletions

View File

@ -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