Commit 4d53e5f2 authored by rajkumar's avatar rajkumar
Browse files

Updating regx for prod build and deployment

parent 988ba733
...@@ -39,10 +39,10 @@ docker-build-test: ...@@ -39,10 +39,10 @@ docker-build-test:
docker-build-prod: docker-build-prod:
stage: package stage: package
only: only:
- /^(?!dev-|test-).*$/ - /^(\d+\.)?(\d+\.)?(\*|\d+)$/
# refs: refs:
# - master - master
# - tags - tags
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
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --build-arg configuration=production --build-arg basePath=/ena/submit/webin/ . - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --build-arg configuration=production --build-arg basePath=/ena/submit/webin/ .
...@@ -79,11 +79,10 @@ k8s-deploy-prod: ...@@ -79,11 +79,10 @@ k8s-deploy-prod:
image: dtzar/helm-kubectl image: dtzar/helm-kubectl
stage: deploy stage: deploy
only: only:
- /^(?!dev-|test-).*$/ - /^(\d+\.)?(\d+\.)?(\*|\d+)$/
refs:
#refs: - master
# - master - tags
# - tags
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
- kubectl delete secret gitlab --namespace=ena-prod - 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