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:
|
containers:
|
||||||
- name: {{ .Chart.Name }}-seed
|
- name: {{ .Chart.Name }}-seed
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
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:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ .Release.Name }}-config
|
name: {{ .Release.Name }}-config
|
||||||
|
|
|
||||||
Reference in a new issue