mirror of
https://github.com/bitnami/charts.git
synced 2026-08-09 12:55:41 +08:00
[bitnami/nginx] Copy hidden files when configuring the cloneStaticSiteFromGit parameter (#13969)
Signed-off-by: jotamartos <jotamartos@vmware.com> Signed-off-by: jotamartos <jotamartos@vmware.com>
This commit is contained in:
@@ -25,4 +25,4 @@ name: nginx
|
||||
sources:
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/nginx
|
||||
- https://www.nginx.org
|
||||
version: 13.2.17
|
||||
version: 13.2.18
|
||||
|
||||
@@ -91,7 +91,7 @@ spec:
|
||||
- |
|
||||
[[ -f "/opt/bitnami/scripts/git/entrypoint.sh" ]] && source "/opt/bitnami/scripts/git/entrypoint.sh"
|
||||
git clone {{ .Values.cloneStaticSiteFromGit.repository }} --branch {{ .Values.cloneStaticSiteFromGit.branch }} /tmp/app
|
||||
[[ "$?" -eq 0 ]] && rm -rf /app/* && mv /tmp/app/* /app/
|
||||
[[ "$?" -eq 0 ]] && shopt -s dotglob && rm -rf /app/* && mv /tmp/app/* /app/
|
||||
{{- end }}
|
||||
{{- if .Values.cloneStaticSiteFromGit.gitClone.args }}
|
||||
args: {{- include "common.tplvalues.render" (dict "value" .Values.cloneStaticSiteFromGit.gitClone.args "context" $) | nindent 12 }}
|
||||
|
||||
Reference in New Issue
Block a user