Fix again ssh key

This commit is contained in:
Guilhem Lavaux 2024-12-08 11:37:27 +01:00
parent 799afb1f88
commit 06dbfcc31d

View File

@ -34,7 +34,9 @@ spec:
cd /web
test -d .git && exit 0
{{- if .Values.updater.ssh.enabled }}
git clone ${GIT_URL} . --config core.sshCommand="ssh -i /ssh/ssh-key -o StrictHostKeyChecking=accept-new"
GIT_SSH_COMMAND="ssh -i /ssh/ssh-key"
export GIT_SSH_COMMAND
git clone ${GIT_URL} . -o StrictHostKeyChecking=accept-new
{{- else }}
git clone ${GIT_URL} .
{{- end}}
@ -110,7 +112,7 @@ spec:
mountPath: /web
{{- if .Values.updater.ssh.enabled }}
- name: ssh-key
mountPath: "/ssh-key"
mountPath: "/ssh"
readOnly: true
{{- end}}
env: