refactor(helm): run seed job with esbuild
See: https://github.com/prisma/prisma/issues/7053#issuecomment-851589268
This commit is contained in:
parent
29b5c1fcae
commit
f6558172b0
1 changed files with 3 additions and 2 deletions
|
|
@ -22,8 +22,9 @@ spec:
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
npm install tsx prisma --silent
|
npm install esbuild --no-save
|
||||||
npx prisma db seed
|
npx esbuild prisma/seed.ts --outfile=seed.cjs --bundle --format=cjs --external:prisma --external:@prisma/client --platform=node
|
||||||
|
node seed.cjs
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ .Release.Name }}-config
|
name: {{ .Release.Name }}-config
|
||||||
|
|
|
||||||
Reference in a new issue