Skip to content

Commit

Permalink
ci: 👷 Simplify build on Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 22, 2022
1 parent f801a29 commit 3392e04
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions apps/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 0 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -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/**"]
Expand Down

5 comments on commit 3392e04

@vercel
Copy link

@vercel vercel bot commented on 3392e04 Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io

@vercel
Copy link

@vercel vercel bot commented on 3392e04 Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3392e04 Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-typebot-io.vercel.app
docs-git-main-typebot-io.vercel.app
docs.typebot.io

@vercel
Copy link

@vercel vercel bot commented on 3392e04 Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2-alpha – ./apps/viewer

vhpage.cr8.ai
apo.nigerias.io
sat.cr8.ai
an.nigerias.io
apr.nigerias.io
bot.aws.bj
bt.id8rs.com
aso.nigerias.io
ar.nigerias.io
am.nigerias.io
eventhub.com.au
chat.sureb4.com
bot.piccinato.co
sakuranembro.it
faqs.nigerias.io
games.klujo.com
feedback.ofx.one
stan.vselise.com
bot.upfunnel.art
clo.closeer.work
goalsettingbot.com
voicehelp.cr8.ai
app.chatforms.net
typebot.stillio.com
bot.eventhub.com.au
zap.techadviser.in
this-is-a-test.com
bot.ansuraniphone.my
forms.webisharp.com
bot.cotemeuplano.com
get.freebotoffer.xyz
chat.hayurihijab.com
apply.ansuraniphone.my
bot.meuesocial.com.br
bot.incusservices.com
chat.missarkansas.org
cdd.searchcube.com.sg
c23111azqw.nigerias.io
gcase.barrettamario.it
form.searchcube.com.sg
info.clickasuransi.com
kodawariab736.skeep.it
83242573.actualizar.xyz
view.onlinebotdemo.xyz
mainmenu.diddancing.com
serviziaziendali.online
91181264.your-access.one
hunterbot.saleshunter.ai
type.opaulovieira.com.br
form.sergiolimajr.com.br
boyfriend-breakup.riku.ai
aibot.angrybranding.co.uk
type.dericsoncalari.com.br
designguide.techyscouts.com
bookings.littlepartymonkeys.com
bot.comercializadoraomicron.com
piazzatorre.barrettamario.it
type.talitasouzamarques.com.br
onboarding.libertydreamcare.ie
agendamento.sergiolimajr.com.br
preagendamento.sergiolimajr.com.br
personal-trainer.barrettamario.it
studiotecnicoimmobiliaremerelli.it
viewer-v2-alpha-typebot-io.vercel.app
viewer-v2-alpha-git-main-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 3392e04 Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.