Commit 7f293b6e authored by rajkumar's avatar rajkumar
Browse files

Updating regx for prod build and deployment

parent 9c4876d8
......@@ -40,12 +40,13 @@ docker-build-test:
docker-build-prod:
stage: package
only:
- /^(?!dev-|test-).+/
refs:
- master
- tags
- /^dev-.*$/
variables:
- $CI_COMMIT_BRANCH == "master"
- /^(?!dev-|test-).*/
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 --build-arg basePath=/ena/submit/webin/ .
......@@ -83,12 +84,12 @@ k8s-deploy-prod:
image: dtzar/helm-kubectl
stage: deploy
only:
- - /^(?!dev-|test-).+/
refs:
- master
- tags
variables:
- $CI_COMMIT_BRANCH == "master"
- /^(?!dev-|test-).+/
script:
- sed -i s#%DOCKER_IMAGE%#$CI_REGISTRY_IMAGE\:$CI_COMMIT_TAG#g Kubernetes-prod-deploy.yaml
- kubectl delete secret gitlab --namespace=ena-prod
......
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