Commit 66328259 authored by rajkumar's avatar rajkumar
Browse files

Updating regx for prod build and deployment

parent aa1f54bd
...@@ -43,7 +43,7 @@ docker-build-prod: ...@@ -43,7 +43,7 @@ docker-build-prod:
- master - master
- tags - tags
variables: variables:
- $CI_COMMIT_BRANCH == "master" #- $CI_COMMIT_BRANCH == "master"
- /^(?!dev-|test-).*/ - /^(?!dev-|test-).*/
script: script:
- docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD - docker login $CI_REGISTRY -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
...@@ -85,7 +85,7 @@ k8s-deploy-prod: ...@@ -85,7 +85,7 @@ k8s-deploy-prod:
- master - master
- tags - tags
variables: variables:
- $CI_COMMIT_BRANCH == "master" #- $CI_COMMIT_BRANCH == "master"
- /^(?!dev-|test-).+/ - /^(?!dev-|test-).+/
script: script:
- sed -i s#%DOCKER_IMAGE%#$CI_REGISTRY_IMAGE\:$CI_COMMIT_TAG#g Kubernetes-prod-deploy.yaml - sed -i s#%DOCKER_IMAGE%#$CI_REGISTRY_IMAGE\:$CI_COMMIT_TAG#g Kubernetes-prod-deploy.yaml
......
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