Added override for environment
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
variables:
|
||||
HELM_CHART_VERSION: "0.8.8"
|
||||
HELM_CHART_VERSION: "0.8.9"
|
||||
|
||||
stages:
|
||||
- deploy
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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: ""
|
||||
|
||||
Reference in New Issue
Block a user