aboutsummaryrefslogtreecommitdiff
path: root/Earthfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-03 05:36:06 -0800
committerFuwn <[email protected]>2024-01-03 05:36:06 -0800
commit076299e85b4e63acb7fdf32f12770dc04b88652e (patch)
treefeef3a510083212224ebc3c1db3eb79116311ebd /Earthfile
parentdeps(bun): update for 0.1.15 (diff)
downloaddue.moe-076299e85b4e63acb7fdf32f12770dc04b88652e.tar.xz
due.moe-076299e85b4e63acb7fdf32f12770dc04b88652e.zip
ci: move to vercel
Diffstat (limited to 'Earthfile')
-rw-r--r--Earthfile68
1 files changed, 0 insertions, 68 deletions
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