Skip to content
Snippets Groups Projects
Commit afe8bc4b authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'update-hostname' into 'master'

deploy behind main url, redirect from beta

See merge request statistical-genetics/jass!80
parents f2d21734 34469a95
No related branches found
No related tags found
1 merge request!80deploy behind main url, redirect from beta
......@@ -151,7 +151,7 @@ build-client-prod:
- cd client
variables:
PATH_TAG: client-static-serve
API_URL: "https://jass-beta.pasteur.cloud/api"
API_URL: "https://jass.pasteur.fr/api"
......@@ -220,10 +220,10 @@ deploy-prod:
extends: .deploy
variables:
NAMESPACE: "jass-prod"
PUBLIC_URL: "jass-beta.pasteur.cloud"
PUBLIC_URL: "jass.pasteur.fr"
environment:
name: "k8sprod-02/jass-prod/${CI_COMMIT_REF_SLUG}"
url: "https://jass-beta.pasteur.cloud"
url: "https://jass.pasteur.fr"
delete-dev-deployment:
......
{{- if .Values.ingress.redirections -}}
{{- $target := .Values.ingress.host.name -}}
{{- range .Values.ingress.redirections.hosts }}
kind: Ingress
apiVersion: networking.k8s.io/v1beta1
metadata:
name: {{ printf "redirect-from-%s" . | replace "." "-" | trunc 63 | trimSuffix "-" | quote }}
annotations:
nginx.ingress.kubernetes.io/temporal-redirect: {{ $target }}
spec:
ingressClassName: external
rules:
- host: {{ . }}
{{- end }}
{{- end }}
......@@ -10,4 +10,7 @@ celery:
ingress:
annotations:
kubernetes.io/ingress.class: external
\ No newline at end of file
kubernetes.io/ingress.class: external
redirections:
hosts:
- jass-beta.pasteur.cloud
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment