From 7cacd6e3a301acfb7278c4a2a458f42a8f91a12a Mon Sep 17 00:00:00 2001 From: Laszlo Fogas Date: Tue, 13 Feb 2024 11:12:11 +0100 Subject: [PATCH] Fixing identation issue --- charts/static-site/templates/deployment.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/charts/static-site/templates/deployment.yaml b/charts/static-site/templates/deployment.yaml index a0b7da9..de8a98f 100644 --- a/charts/static-site/templates/deployment.yaml +++ b/charts/static-site/templates/deployment.yaml @@ -53,16 +53,16 @@ spec: - sh - -c - | - {{- if .Values.gitCloneUrlSecretName }} - git clone $gitCloneUrl && - cd $(echo $gitCloneUrl | sed 's|.*/||' | cut -d "." -f1) && - {{- else }} - git clone {{ .Values.gitCloneUrl }} && - cd {{ regexFind "([^\\/]+$)" .Values.gitCloneUrl | replace ".git" "" }} && - {{- end }} - {{ .Values.buildScript | nindent 10}} - mkdir -p /usr/share/nginx/html && - cp -r ./{{ .Values.builtAssets }}. /usr/share/nginx/html + {{- if .Values.gitCloneUrlSecretName }} + git clone $gitCloneUrl && + cd $(echo $gitCloneUrl | sed 's|.*/||' | cut -d "." -f1) && + {{- else }} + git clone {{ .Values.gitCloneUrl }} && + cd {{ regexFind "([^\\/]+$)" .Values.gitCloneUrl | replace ".git" "" }} && + {{- end }} + {{ .Values.buildScript | nindent 10}} + mkdir -p /usr/share/nginx/html && + cp -r ./{{ .Values.builtAssets }}. /usr/share/nginx/html {{- end }} volumeMounts: - name: static-files