From 06dbfcc31d9ae2bf4e32e916eadbcd84a3efc837 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 8 Dec 2024 11:37:27 +0100 Subject: [PATCH] Fix again ssh key --- templates/deployment.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index a7cc903..478e756 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -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: