adjust actions + docker containers for prisma
This commit is contained in:
parent
64e33e4e79
commit
bc9099a8bb
3 changed files with 6 additions and 3 deletions
|
|
@ -44,7 +44,7 @@
|
|||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "bun install",
|
||||
"postCreateCommand": "bun install && bun prisma generate",
|
||||
"remoteUser": "root",
|
||||
"mounts": ["source=${localWorkspaceFolder}/data,target=/app/data,type=bind"],
|
||||
"containerEnv": {
|
||||
|
|
|
|||
3
.github/workflows/check-lint.yml
vendored
3
.github/workflows/check-lint.yml
vendored
|
|
@ -27,5 +27,8 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Generate Prisma client
|
||||
run: bun prisma generate
|
||||
|
||||
- name: Run lint
|
||||
run: bun run lint
|
||||
|
|
|
|||
|
|
@ -25,12 +25,12 @@ RUN unzip -j bun-linux-*.zip -d /usr/local/bin && \
|
|||
FROM base AS install
|
||||
RUN mkdir -p /temp/dev
|
||||
COPY package.json bun.lock /temp/dev/
|
||||
RUN cd /temp/dev && bun install --frozen-lockfile
|
||||
RUN cd /temp/dev && bun install --frozen-lockfile && bun prisma generate
|
||||
|
||||
# install with --production (exclude devDependencies)
|
||||
RUN mkdir -p /temp/prod
|
||||
COPY package.json bun.lock /temp/prod/
|
||||
RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||
RUN cd /temp/prod && bun install --frozen-lockfile --production && bun prisma generate
|
||||
|
||||
FROM base AS prerelease
|
||||
WORKDIR /app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue