refactor(helm): job-db-seed: run as shell, install tsx, prisma, run directly npm tsx prisma/seed.ts
This commit is contained in:
parent
d45defffe5
commit
ada27c7284
1 changed files with 5 additions and 1 deletions
|
|
@ -19,7 +19,11 @@ spec:
|
|||
containers:
|
||||
- name: {{ .Chart.Name }}-seed
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
command: ["npx", "prisma", "db", "seed"]
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
npm install tsx prisma --silent
|
||||
npx tsx prisma/seed.ts
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ .Release.Name }}-config
|
||||
|
|
|
|||
Reference in a new issue