Added additional environment vars

This commit is contained in:
2023-03-27 21:12:31 +00:00
parent 1b01d64471
commit a5b13a2266
3 changed files with 10 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
variables: variables:
HELM_CHART_VERSION: "0.6.1" HELM_CHART_VERSION: "0.6.2"
stages: stages:
- deploy - deploy

View File

@@ -32,7 +32,11 @@ data:
IMPORT_DATABASE: {{ .Values.site.init.database.url }} IMPORT_DATABASE: {{ .Values.site.init.database.url }}
FORCE_IMPORT_DB: {{ .Values.site.init.database.force | default "false" | quote }} FORCE_IMPORT_DB: {{ .Values.site.init.database.force | default "false" | quote }}
{{- end }} {{- end }}
{{- if .Values.site.additional_env }}
{{- range $k, $v := .Values.site.additional_env }}
{{ $k }}: {{ $v }}
{{- end }}
{{- end }}
--- ---
kind: ConfigMap kind: ConfigMap
apiVersion: v1 apiVersion: v1

View File

@@ -27,6 +27,10 @@ site:
# The main URL for the website # The main URL for the website
url: "www.mycustomer.com" url: "www.mycustomer.com"
# Additional environment variables to pass to the container
additional_env: {}
# MY_ENV_VAR: "value"
# 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: ""