Commit 25d75f27 authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

Scoped ingress & var on domain & sed domain

parent 0e09492a
Pipeline #22518 passed with stages
in 11 seconds
......@@ -48,6 +48,7 @@ deploy to k8s:
stage: deploy
variables:
NAMESPACE: cbio-on-demand
DOMAIN: cbiood
<<: *kube-auth
image: registry.gitlab.ics.muni.cz:443/europdx/k8s/ci:latest
script:
......@@ -86,6 +87,7 @@ deploy to k8s beta:
stage: deploy
variables:
NAMESPACE: cbio-on-demand-beta
DOMAIN: cbiood-beta
<<: *kube-auth
image: registry.gitlab.ics.muni.cz:443/europdx/k8s/ci:latest
script:
......@@ -124,6 +126,7 @@ deploy to k8s dev:
stage: deploy
variables:
NAMESPACE: cbio-on-demand-dev
DOMAIN: cbiood-dev
<<: *kube-auth
image: registry.gitlab.ics.muni.cz:443/europdx/k8s/ci:latest
script:
......
......@@ -2,4 +2,5 @@ echo "Hi I am here"
cd yaml
for i in *; do
sed -i "s^__NAMESPACE__^${NAMESPACE}^" $i
sed -i "s^__DOMAIN__^${DOMAIN}" $i
done
......@@ -8,10 +8,10 @@ metadata:
spec:
tls:
- hosts:
- cbiood.edirex.ics.muni.cz
- __DOMAIN__.edirex.ics.muni.cz
secretName: ingress
rules:
- host: cbiood.edirex.ics.muni.cz
- host: __DOMAIN__.edirex.ics.muni.cz
http:
paths:
- path: /
......
Supports Markdown
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