Skip to content

Commit

Permalink
Fixing identation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Feb 13, 2024
1 parent efb632d commit 7cacd6e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions charts/static-site/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cacd6e

Please sign in to comment.