更新gitlab CI/CD
This commit is contained in:
parent
d28d9de272
commit
9a55c82e1b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue