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