Added override for environment
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
variables:
|
variables:
|
||||||
HELM_CHART_VERSION: "0.8.8"
|
HELM_CHART_VERSION: "0.8.9"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deploy
|
- deploy
|
||||||
|
|||||||
@@ -28,7 +28,12 @@ data:
|
|||||||
SMTP_FROM_NAME: "V3 Customer Mailer"
|
SMTP_FROM_NAME: "V3 Customer Mailer"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if and .Values.site .Values.site.overrideEnvironment }}
|
||||||
|
WP_ENV: "{{ .Values.site.overrideEnvironment }}"
|
||||||
|
{{- else }}
|
||||||
WP_ENV: "production"
|
WP_ENV: "production"
|
||||||
|
{{- endif }}
|
||||||
|
|
||||||
{{- if .Values.site.overrideMainUrl }}
|
{{- if .Values.site.overrideMainUrl }}
|
||||||
WP_HOME: "https://{{ .Values.site.overrideMainUrl }}"
|
WP_HOME: "https://{{ .Values.site.overrideMainUrl }}"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ site:
|
|||||||
additional_env: {}
|
additional_env: {}
|
||||||
# MY_ENV_VAR: "value"
|
# MY_ENV_VAR: "value"
|
||||||
|
|
||||||
|
# Override the environment. Valid values are production, staging and development
|
||||||
|
# overrideEnvironment: "staging"
|
||||||
|
|
||||||
# Create sites with another main domain for WP,
|
# Create sites with another main domain for WP,
|
||||||
# but the rest of the components named according to site-tld
|
# but the rest of the components named according to site-tld
|
||||||
# overrideMainUrl: ""
|
# overrideMainUrl: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user