From 31cd6ea75c5bf2d80496dc8999acb3dfd875c3c7 Mon Sep 17 00:00:00 2001 From: waleedlatif1 Date: Thu, 7 Aug 2025 22:54:13 -0700 Subject: [PATCH 1/2] fix(helm): fix helm charts migrations using wrong image --- helm/sim/templates/deployment-app.yaml | 3 ++- helm/sim/values.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helm/sim/templates/deployment-app.yaml b/helm/sim/templates/deployment-app.yaml index 8923f335bf9..7c6c8e6d0cb 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 }} diff --git a/helm/sim/values.yaml b/helm/sim/values.yaml index 201f4f39d48..3d8c9db0a2b 100644 --- a/helm/sim/values.yaml +++ b/helm/sim/values.yaml @@ -209,7 +209,7 @@ migrations: # Image configuration image: - repository: simstudioai/migrations + repository: ghcr.io/simstudioai/migrations tag: latest pullPolicy: Always From fbf8750c9ec81d2660691c49beb1e19bf18c28f8 Mon Sep 17 00:00:00 2001 From: waleedlatif1 Date: Thu, 7 Aug 2025 23:09:22 -0700 Subject: [PATCH 2/2] fixed migrations --- helm/sim/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/sim/values.yaml b/helm/sim/values.yaml index 3d8c9db0a2b..201f4f39d48 100644 --- a/helm/sim/values.yaml +++ b/helm/sim/values.yaml @@ -209,7 +209,7 @@ migrations: # Image configuration image: - repository: ghcr.io/simstudioai/migrations + repository: simstudioai/migrations tag: latest pullPolicy: Always