From 880188fe003eb4cf8bcc23c08bed630539c1f5c6 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 13 Dec 2023 12:01:22 -0800 Subject: feat(settings): version for debug --- .earthlyignore | 3 ++- Earthfile | 10 +++++++++- src/routes/settings/+page.svelte | 3 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.earthlyignore b/.earthlyignore index 7936b20e..75846ced 100644 --- a/.earthlyignore +++ b/.earthlyignore @@ -11,4 +11,5 @@ !.eslintignore !.eslintrc.cjs !.prettierignore -!.prettierrc \ No newline at end of file +!.prettierrc +!.git diff --git a/Earthfile b/Earthfile index 6d4e33fe..830ffd31 100644 --- a/Earthfile +++ b/Earthfile @@ -5,8 +5,12 @@ FROM oven/bun:1.0.15-alpine WORKDIR /due all: + RUN apk add --update --no-cache git + + COPY .git .git + BUILD +lint - BUILD +docker + BUILD +docker --GIT_SHORT_SHA=$(git rev-parse --short HEAD) BUILD +git dev: @@ -27,8 +31,12 @@ 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 diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte index e13ec548..a7db1390 100644 --- a/src/routes/settings/+page.svelte +++ b/src/routes/settings/+page.svelte @@ -6,6 +6,7 @@ import SettingHint from '$lib/Settings/SettingHint.svelte'; import { pruneAllManga } from '$lib/Media/manga'; import Attributions from '$lib/Settings/Attributions.svelte'; + import { env } from '$env/dynamic/public'; export let data; @@ -263,7 +264,7 @@

- Reset Settings + Debug {env.PUBLIC_GIT_SHORT_SHA} Reset ALL settings -- cgit v1.2.3