1
0
Fork 0

refactor(helm): run seed job with esbuild

See: https://github.com/prisma/prisma/issues/7053#issuecomment-851589268
This commit is contained in:
Vojtěch Mareš 2023-07-04 18:29:51 +02:00
parent 29b5c1fcae
commit f6558172b0
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -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