Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Adapt manual deployment scripts #238

Merged
merged 3 commits into from
Jan 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY pnpm-lock.yaml .npmrc pnpm-workspace.yaml ./
RUN pnpm fetch
ADD . ./
RUN pnpm install -r --offline
RUN pnpm turbo run build --filter=${SCOPE}...
RUN pnpm turbo run build:docker --filter=${SCOPE}...

FROM base AS runner
WORKDIR /app
Expand Down
5 changes: 3 additions & 2 deletions apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"version": "0.1.0",
"license": "AGPL-3.0-or-later",
"scripts": {
"dev": "cross-env ENVSH_ENV=.env.local sh ../../env.sh next dev -p 3000",
"build": "next build",
"dev": "cross-env ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3000",
"build": "cross-env ENVSH_ENV=.env.local bash ../../env.sh next build",
"build:docker": "next build",
"build:env": "cd ../.. && cross-env ENVSH_ENV=./apps/builder/.env.docker ENVSH_OUTPUT=./apps/builder/public/__env.js bash env.sh",
"start": "next start",
"lint": "next lint",
Expand Down
5 changes: 3 additions & 2 deletions apps/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"license": "AGPL-3.0-or-later",
"version": "0.1.0",
"scripts": {
"dev": "cross-env ENVSH_ENV=.env.local sh ../../env.sh next dev -p 3001",
"build": "next build",
"dev": "cross-env ENVSH_ENV=.env.local bash ../../env.sh next dev -p 3001",
"build": "cross-env ENVSH_ENV=.env.local bash ../../env.sh next build",
"build:docker": "next build",
"build:env": "cd ../.. && cross-env ENVSH_ENV=./apps/viewer/.env.docker ENVSH_OUTPUT=./apps/viewer/public/__env.js bash env.sh",
"start": "next start -p 3001",
"lint": "next lint",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build:builder": "turbo run build --filter=builder... && turbo run build:env --filter=builder...",
"build:viewer": "turbo run build --filter=viewer... && turbo run build:env --filter=viewer...",
"build:landing-page": "turbo run build --filter=landing-page... && turbo run build:env --filter=landing-page...",
"build:apps": "turbo run build --filter=builder... --filter=viewer...",
"db:migrate": "cd packages/db && pnpm run db:migrate",
"generate-change-log": "pnpx gitmoji-changelog"
},
Expand Down
5 changes: 5 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"outputs": [".next/**", "dist/**", "build/**"],
"outputMode": "new-only"
},
"build:docker": {
"dependsOn": ["^build", "db#db:generate"],
"outputs": [".next/**", "dist/**", "build/**"],
"outputMode": "new-only"
},
"docs#build": {
"dependsOn": ["api:generate"],
"outputs": ["build/**"],
Expand Down