Fix ssh support
This commit is contained in:
parent
1317be06c9
commit
ada136ecc0
@ -4,8 +4,8 @@ name: basic-web-app
|
|||||||
PullName: basic-app-puller
|
PullName: basic-app-puller
|
||||||
description: A basic Helm chart to have PHP webapps in Kubernetes. It supports webhook for pulling from gitea
|
description: A basic Helm chart to have PHP webapps in Kubernetes. It supports webhook for pulling from gitea
|
||||||
type: application
|
type: application
|
||||||
version: 2.1.0
|
version: 2.1.1
|
||||||
appVersion: "2.1.0"
|
appVersion: "2.1.1"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
|
@ -24,7 +24,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}}
|
||||||
command:
|
command:
|
||||||
@ -34,7 +34,7 @@ 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-key"
|
git clone ${GIT_URL} . --config core.sshCommand="ssh -i /ssh/ssh-key"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
git clone ${GIT_URL} .
|
git clone ${GIT_URL} .
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user