fix: correctif cicd

This commit is contained in:
Max batleforc 2024-06-28 03:25:51 +02:00
parent 6bfc386292
commit 915083c241
No known key found for this signature in database
GPG Key ID: 25D243AB4B6AC9E7

View File

@ -37,7 +37,7 @@ spec:
- name: "init" - name: "init"
image: "alpine/git:latest" image: "alpine/git:latest"
imagePullPolicy: Always imagePullPolicy: Always
command: ["ash", "-c", "cd /appdata && git clone git@git.weebo.fr:sandbox/base-image.git ."] command: ["ash", "-c", "cp /root/test/* /root/.ssh && chmod 600 /root/.ssh/base-image && cd /appdata && git clone git@git.weebo.fr:sandbox/base-image.git ."]
env: env:
- name: "GIT_SSH_COMMAND" - name: "GIT_SSH_COMMAND"
value: "ssh -o StrictHostKeyChecking=no" value: "ssh -o StrictHostKeyChecking=no"
@ -45,7 +45,7 @@ spec:
- name: "base-image" - name: "base-image"
mountPath: "/appdata" mountPath: "/appdata"
- name: "ssh-key" - name: "ssh-key"
mountPath: "/root/.ssh" mountPath: "/root/test"
containers: containers:
- name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}" - name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"