diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 17ab5d5..b08d683 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,11 +12,14 @@ before_script: stages: - build + - deploy deploy-staging:dep: stage: build only: - master + tags: + - $TAG script: - echo "===== start build ==========" - docker build -t ${IMAGE_NAME} . @@ -28,6 +31,8 @@ deploy-staging:dep: stage: deploy only: - master + tags: + - $TAG script: - echo "===== start deploy ==========" - if [ "$(kubectl get deployment -n $K8S_NS | grep $DEPLOYMENT_NAME | awk '{print $1}')" ]; then