From 40a50ba81050b483c59749124354c78908e35782 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 9 Dec 2023 12:11:43 -0800 Subject: ci(earthly): reorder tasks --- Earthfile | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'Earthfile') diff --git a/Earthfile b/Earthfile index a3f1d09c..f260cbff 100644 --- a/Earthfile +++ b/Earthfile @@ -8,24 +8,6 @@ all: BUILD +lint BUILD +docker -deps: - RUN apk add --update --no-cache sqlite-dev - - COPY package.json ./ - COPY bun.lockb ./ - - RUN bun install - -source: - FROM +deps - - COPY src src - COPY static static - 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 - dev: LOCALLY @@ -41,6 +23,13 @@ lint: RUN bun --bun run check +docker: + COPY +build/build . + + CMD ["bun", "--bun", "./index.js"] + + SAVE IMAGE --push fuwn/due-next:latest + build: FROM +source @@ -50,9 +39,20 @@ build: SAVE ARTIFACT build -docker: - COPY +build/build . +deps: + RUN apk add --update --no-cache sqlite-dev - CMD ["bun", "--bun", "./index.js"] + COPY package.json ./ + COPY bun.lockb ./ - SAVE IMAGE --push fuwn/due-next:latest + RUN bun install + +source: + FROM +deps + + COPY src src + COPY static static + 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 -- cgit v1.2.3