diff options
| author | Fuwn <[email protected]> | 2024-01-03 05:36:06 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-03 05:36:06 -0800 |
| commit | 076299e85b4e63acb7fdf32f12770dc04b88652e (patch) | |
| tree | feef3a510083212224ebc3c1db3eb79116311ebd /Earthfile | |
| parent | deps(bun): update for 0.1.15 (diff) | |
| download | due.moe-076299e85b4e63acb7fdf32f12770dc04b88652e.tar.xz due.moe-076299e85b4e63acb7fdf32f12770dc04b88652e.zip | |
ci: move to vercel
Diffstat (limited to 'Earthfile')
| -rw-r--r-- | Earthfile | 68 |
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 |