fix: correctif cicd

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

View File

@ -35,9 +35,9 @@ spec:
secretName: "bot-discord-pull"
initContainers:
- name: "init"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "alpine/git:latest"
imagePullPolicy: Always
command: ["sh", "-c", "cd /appdata && git clone git@git.weebo.fr:sandbox/base-image.git ."]
command: ["ash", "-c", "cd /appdata && git clone git@git.weebo.fr:sandbox/base-image.git ."]
env:
- name: "GIT_SSH_COMMAND"
value: "ssh -o StrictHostKeyChecking=no"
@ -93,6 +93,8 @@ spec:
secretKeyRef:
name: "botdiscord"
key: "token"
- name: DB_URL
value: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
- name: RUST_ENV
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+$" .Values.image.tag }}
value: "prod"