2
0

ci: 👷 Simplify build on Vercel

This commit is contained in:
Baptiste Arnaud
2022-06-22 10:23:54 +02:00
parent f801a29539
commit 3392e04d38
5 changed files with 5 additions and 9 deletions

View File

@ -20,7 +20,7 @@ COPY --from=pruner /app/out/full/ .
COPY ./apps/${SCOPE}/.env.docker ./apps/${SCOPE}/.env.production
COPY ./apps/${SCOPE}/.env.docker ./apps/${SCOPE}/.env.local
RUN apt-get -qy update && apt-get -qy install openssl
RUN yarn turbo run build:docker --scope=${SCOPE} --include-dependencies --no-deps
RUN yarn turbo run build --scope=${SCOPE} --include-dependencies --no-deps
RUN find . -name node_modules | xargs rm -rf
FROM base AS runner

View File

@ -5,8 +5,7 @@
"scripts": {
"dx": "yarn dev",
"dev": "ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3000",
"build": "cp .env.docker .env.production && ENVSH_ENV=.env.production bash ../../env.sh next build",
"build:docker": "next build",
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "yarn playwright test",

View File

@ -5,8 +5,7 @@
"scripts": {
"dx": "yarn dev",
"dev": "ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3001",
"build": "cp .env.docker .env.production && ENVSH_ENV=.env.production bash ../../env.sh next build",
"build:docker": "next build",
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "yarn playwright test",

View File

@ -14,6 +14,8 @@
"dev": "yarn docker:up && yarn dev:prepare && NEXT_PUBLIC_E2E_TEST=false turbo run dx --parallel",
"dev:mocking": "yarn docker:up && NEXT_PUBLIC_E2E_TEST=enabled turbo run dx --parallel",
"build": "yarn docker:up && turbo run build",
"build:builder": "cp apps/builder/.env.docker apps/builder/.env.production && ENVSH_ENV=./apps/builder/.env.production ENVSH_OUTPUT=./apps/builder/public/__env.js bash env.sh yarn turbo run build --scope=builder --include-dependencies",
"build:viewer": "cp apps/viewer/.env.docker apps/viewer/.env.production && ENVSH_ENV=./apps/viewer/.env.production ENVSH_OUTPUT=./apps/viewer/public/__env.js bash env.sh yarn turbo run build --scope=viewer --include-dependencies",
"test:builder": "cd apps/builder && yarn test",
"lint": "turbo run lint",
"db:migrate": "yarn workspace db migration:deploy"

View File

@ -1,10 +1,6 @@
{
"baseBranch": "origin/main",
"pipeline": {
"build:docker": {
"dependsOn": ["^build"],
"outputs": [".next/**", "dist/**", "build/**", "node_modules/@prisma/**"]
},
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "dist/**", "build/**", "node_modules/@prisma/**"]