Skip to content
Snippets Groups Projects
Commit c7c60b52 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Define HOSTLABEL env var in deployment

parent 2dac2c6d
No related branches found
No related tags found
1 merge request!74Resolve "select workflow to run"
Pipeline #66576 canceled
......@@ -78,6 +78,7 @@ services:
--set galaxy.key=${GALAXY_API_KEY}
--set redis.auth.password=${REDIS_PASSWORD}
--set django.secretKey=${SECRET_KEY}
--set django.hostLabel=${HOSTLABEL}
${CI_COMMIT_REF_SLUG} ./chart/
stages:
......@@ -168,6 +169,7 @@ deploy-dev:
PUBLIC_URL: "cc-qtl-${CI_COMMIT_REF_SLUG}.pasteur.cloud"
DEBUG: "True"
NODE_ENV: development
HOSTLABEL: cc-qtl-dev
environment:
name: "k8sdev-01/${CI_COMMIT_REF_SLUG}"
url: "https://cc-qtl-${CI_COMMIT_REF_SLUG}.pasteur.cloud"
......@@ -186,7 +188,9 @@ deploy-prod:
CI_DEBUG_TRACE: "false"
NAMESPACE: "cc-qtl-prod"
PUBLIC_URL: "cc-qtl.pasteur.cloud"
DEBUG: "True"
DEBUG: "False"
HOSTLABEL: cc-qtl-prod
environment:
name: "k8sprod-02/${CI_COMMIT_REF_SLUG}"
url: "https://cc-qtl.pasteur.cloud"
......
......@@ -87,6 +87,8 @@ spec:
value: prod
- name: REDIS_HOST
value: {{ printf "redis://:%s@%s-redis-master" .Values.redis.auth.password .Release.Name }}
- name: HOSTLABEL
value: {{ .Values.django.hostLabel }}
ports:
- name: http
containerPort: 8000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment