From 004cd3339da8f40794212f3628c2669c1bb4b433 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 7 Aug 2025 23:11:17 -0700 Subject: [PATCH] fix(helm): fix helm charts migrations using wrong image (#907) * fix(helm): fix helm charts migrations using wrong image * fixed migrations --- helm/sim/templates/deployment-app.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helm/sim/templates/deployment-app.yaml b/helm/sim/templates/deployment-app.yaml index 8923f335bf..7c6c8e6d0c 100644 --- a/helm/sim/templates/deployment-app.yaml +++ b/helm/sim/templates/deployment-app.yaml @@ -38,9 +38,10 @@ spec: - name: migrations image: {{ include "sim.image" (dict "context" . "image" .Values.migrations.image) }} imagePullPolicy: {{ .Values.migrations.image.pullPolicy }} - command: ["/bin/bash", "-c"] + command: ["/bin/sh", "-c"] args: - | + cd /app/apps/sim export DATABASE_URL="{{ include "sim.databaseUrl" . }}" bun run db:migrate {{- if .Values.postgresql.enabled }}