ci: set DATABASE_URL env in builder for prisma generate
This commit is contained in:
@@ -12,6 +12,8 @@ RUN pnpm install --frozen-lockfile 2>/dev/null || pnpm install
|
||||
FROM base AS builder
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
ARG DATABASE_URL
|
||||
ENV DATABASE_URL=$DATABASE_URL
|
||||
RUN pnpm --filter @moraworld/database generate
|
||||
RUN pnpm --filter @moraworld/database build
|
||||
RUN pnpm --filter @moraworld/api build
|
||||
|
||||
@@ -12,6 +12,8 @@ RUN pnpm install --frozen-lockfile 2>/dev/null || pnpm install
|
||||
FROM base AS builder
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
ARG DATABASE_URL
|
||||
ENV DATABASE_URL=$DATABASE_URL
|
||||
ARG NEXT_PUBLIC_API_URL=http://localhost:3001
|
||||
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
||||
RUN pnpm --filter @moraworld/database generate
|
||||
|
||||
Reference in New Issue
Block a user