Commit 5721f318 authored by rajkumar's avatar rajkumar
Browse files

allowing K8-master branch for prod deployment

parent 6f119ff9
Pipeline #278485 failed with stages
in 27 seconds
......@@ -37,19 +37,32 @@ docker-build-test:
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --build-arg configuration=test .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
#docker-build-prod:
# stage: package
# only:
# refs:
# - master
# - tags
# variables:
# - $CI_COMMIT_BRANCH == "master"
# script:
# - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
# - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --build-arg configuration=production .
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
docker-build-prod:
stage: package
only:
refs:
- master
- tags
variables:
- $CI_COMMIT_BRANCH == "master"
- /^K8-master-.*$/
except:
- branches
- triggers
script:
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --build-arg configuration=production .
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --build-arg configuration=test .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
k8s-deploy-dev:
image: dtzar/helm-kubectl
stage: deploy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment