Fix again ssh key
This commit is contained in:
parent
799afb1f88
commit
06dbfcc31d
@ -34,7 +34,9 @@ spec:
|
|||||||
cd /web
|
cd /web
|
||||||
test -d .git && exit 0
|
test -d .git && exit 0
|
||||||
{{- if .Values.updater.ssh.enabled }}
|
{{- 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 }}
|
{{- else }}
|
||||||
git clone ${GIT_URL} .
|
git clone ${GIT_URL} .
|
||||||
{{- end}}
|
{{- end}}
|
||||||
@ -110,7 +112,7 @@ spec:
|
|||||||
mountPath: /web
|
mountPath: /web
|
||||||
{{- if .Values.updater.ssh.enabled }}
|
{{- if .Values.updater.ssh.enabled }}
|
||||||
- name: ssh-key
|
- name: ssh-key
|
||||||
mountPath: "/ssh-key"
|
mountPath: "/ssh"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end}}
|
{{- end}}
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user