Commit 91acb773 authored by rajkumar's avatar rajkumar
Browse files

allowing K8-master branch for prod deployment

parent 5721f318
Pipeline #278486 failed with stages
in 5 minutes and 19 seconds
......@@ -59,7 +59,7 @@ docker-build-prod:
- 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=test .
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --build-arg configuration=production .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
......@@ -115,7 +115,7 @@ k8s-deploy-prod:
- branches
- triggers
script:
- sed -i s#%DOCKER_IMAGE%#$CI_REGISTRY_IMAGE\:$CI_COMMIT_TAG#g Kubernetes-test-deploy.yaml
- kubectl delete secret gitlab --namespace=ena-test
- kubectl create secret docker-registry gitlab --docker-server=$CI_REGISTRY --docker-username=$DOCKER_USER --docker-password=$DOCKER_PASSWORD --docker-email=$DOCKER_EMAIL --namespace=ena-test
- kubectl apply -f Kubernetes-test-deploy.yaml --namespace=ena-test
- sed -i s#%DOCKER_IMAGE%#$CI_REGISTRY_IMAGE\:$CI_COMMIT_TAG#g Kubernetes-prod-deploy.yaml
- kubectl delete secret gitlab --namespace=ena-prod
- kubectl create secret docker-registry gitlab --docker-server=$CI_REGISTRY --docker-username=$DOCKER_USER --docker-password=$DOCKER_PASSWORD --docker-email=$DOCKER_EMAIL --namespace=ena-prod
- kubectl apply -f Kubernetes-prod-deploy.yaml --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