diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e3ed9f..559128a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ variables: - HELM_CHART_VERSION: "0.6.1" + HELM_CHART_VERSION: "0.6.2" stages: - deploy diff --git a/Chart/templates/configmap.yaml b/Chart/templates/configmap.yaml index dd69a78..b2a6969 100644 --- a/Chart/templates/configmap.yaml +++ b/Chart/templates/configmap.yaml @@ -32,7 +32,11 @@ data: IMPORT_DATABASE: {{ .Values.site.init.database.url }} FORCE_IMPORT_DB: {{ .Values.site.init.database.force | default "false" | quote }} {{- end }} - + {{- if .Values.site.additional_env }} + {{- range $k, $v := .Values.site.additional_env }} + {{ $k }}: {{ $v }} + {{- end }} + {{- end }} --- kind: ConfigMap apiVersion: v1 diff --git a/Chart/values.yaml b/Chart/values.yaml index de2394f..8e4c091 100644 --- a/Chart/values.yaml +++ b/Chart/values.yaml @@ -27,6 +27,10 @@ site: # The main URL for the website 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, # but the rest of the components named according to site-tld # overrideMainUrl: ""