From 6bfc3862920c733d98389937a9bf06ea1e5c529d Mon Sep 17 00:00:00 2001 From: Max batleforc Date: Fri, 28 Jun 2024 03:21:34 +0200 Subject: [PATCH] fix: correctif cicd --- chart/templates/Deployment.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chart/templates/Deployment.yaml b/chart/templates/Deployment.yaml index aff7f78..57686dc 100644 --- a/chart/templates/Deployment.yaml +++ b/chart/templates/Deployment.yaml @@ -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"