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"]
|
||||
args:
|
||||
- |
|
||||
npm install tsx prisma --silent
|
||||
npx prisma db seed
|
||||
npm install esbuild --no-save
|
||||
npx esbuild prisma/seed.ts --outfile=seed.cjs --bundle --format=cjs --external:prisma --external:@prisma/client --platform=node
|
||||
node seed.cjs
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ .Release.Name }}-config
|
||||
|
|
|
|||
Reference in a new issue