From 1a259c91c57afbe174340627b69b82a01a05ec32 Mon Sep 17 00:00:00 2001 From: Lars Scheibling Date: Sun, 4 Jun 2023 12:26:32 +0000 Subject: [PATCH] Fixed domain env setting --- .gitlab-ci.yml | 2 +- Chart/templates/configmap.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b246d58..8624e37 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ variables: - HELM_CHART_VERSION: "0.5.14" + HELM_CHART_VERSION: "0.5.15" stages: - deploy diff --git a/Chart/templates/configmap.yaml b/Chart/templates/configmap.yaml index 47dfa2d..05f2afe 100644 --- a/Chart/templates/configmap.yaml +++ b/Chart/templates/configmap.yaml @@ -23,7 +23,7 @@ data: SMTP_FROM_NAME: "V3 Customer Mailer" {{- end }} WP_ENV: "{{ .Values.site.environment | default "production" }}" - WP_HOME: "{{ .Values.site.redirectDomain | default ( .Values.site.domain ) }}" + WP_HOME: "https://{{ ().Values.site.redirectDomain | default ( .Values.site.domain )) | replace "https://" "" | replace "http://" "" }}" {{- if .Values.site.additional_env }} {{- range $k, $v := .Values.site.additionalEnv }} {{ $k }}: {{ $v }}