Added override for environment

This commit is contained in:
2023-05-12 17:00:07 +02:00
parent 13ea14a28c
commit 10555efb04
3 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
variables:
HELM_CHART_VERSION: "0.8.8"
HELM_CHART_VERSION: "0.8.9"
stages:
- deploy

View File

@@ -28,7 +28,12 @@ data:
SMTP_FROM_NAME: "V3 Customer Mailer"
{{- end }}
{{- if and .Values.site .Values.site.overrideEnvironment }}
WP_ENV: "{{ .Values.site.overrideEnvironment }}"
{{- else }}
WP_ENV: "production"
{{- endif }}
{{- if .Values.site.overrideMainUrl }}
WP_HOME: "https://{{ .Values.site.overrideMainUrl }}"
{{- else }}

View File

@@ -44,6 +44,9 @@ site:
additional_env: {}
# MY_ENV_VAR: "value"
# Override the environment. Valid values are production, staging and development
# overrideEnvironment: "staging"
# Create sites with another main domain for WP,
# but the rest of the components named according to site-tld
# overrideMainUrl: ""