From 076299e85b4e63acb7fdf32f12770dc04b88652e Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 3 Jan 2024 05:36:06 -0800 Subject: ci: move to vercel --- Earthfile | 68 --------------------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 Earthfile (limited to 'Earthfile') diff --git a/Earthfile b/Earthfile deleted file mode 100644 index ec3a71ed..00000000 --- a/Earthfile +++ /dev/null @@ -1,68 +0,0 @@ -VERSION 0.7 - -FROM oven/bun:1.0.15-alpine - -WORKDIR /due - -all: - RUN apk add --update --no-cache git - - COPY .git .git - - BUILD +lint - BUILD +docker --GIT_SHORT_SHA=$(git rev-parse --short HEAD) - -dev: - LOCALLY - - RUN fuser -k 5173/tcp || true - RUN npm run dev -- --host - -lint: - FROM +source - - COPY .eslintignore .eslintignore - COPY .eslintrc.cjs .eslintrc.cjs - COPY .prettierignore .prettierignore - COPY .prettierrc .prettierrc - - RUN bun --bun run lint - RUN bun --bun run check - -docker: - ARG GIT_SHORT_SHA - - COPY +build/build . - - RUN echo "PUBLIC_GIT_SHORT_SHA=$GIT_SHORT_SHA" > .env - - CMD ["bun", "--bun", "./index.js"] - - SAVE IMAGE --push fuwn/due-next:latest - -build: - FROM +source - - RUN mkdir data - RUN sqlite3 data/due_moe.sqlite3 < due_moe_schema.sql - RUN bun --bun run vite build - - SAVE ARTIFACT build - -deps: - RUN apk add --update --no-cache sqlite-dev - - COPY package.json ./ - COPY bun.lockb ./ - - RUN bun install - -source: - FROM +deps - - COPY due_moe_schema.sql due_moe_schema.sql - COPY svelte.config.js svelte.config.js - COPY tsconfig.json tsconfig.json - COPY vite.config.ts vite.config.ts - COPY static static - COPY src src -- cgit v1.2.3