fix ci
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-12-04 21:21:25 +08:00
parent 4a4ae6fb6a
commit 4b6a4735ee
2 changed files with 2 additions and 3 deletions

View File

@@ -26,8 +26,7 @@ steps:
DATABASE_URL: DATABASE_URL:
from_secret: database_url from_secret: database_url
commands: commands:
- npm install -g prisma@7 - npx prisma@7 migrate deploy
- prisma migrate deploy
- name: deploy - name: deploy
image: appleboy/drone-ssh image: appleboy/drone-ssh

View File

@@ -40,7 +40,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
# else echo "Lockfile not found." && exit 1; \ # else echo "Lockfile not found." && exit 1; \
# fi # fi
RUN DATABASE_URL=postgresql://fake:fake@fake:5432/fake npx prisma generate RUN DATABASE_URL=postgresql://fake:fake@fake:5432/fake npx prisma@7 generate
RUN \ RUN \
if [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \ if [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \