chore: add build time to main page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
f899d3218d
commit
057c8ecb3e
2 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@ site:
|
|||
RUN bun install --frozen-lockfile
|
||||
COPY --dir src index.html style.css vite.config.ts tsconfig.json svelte.config.js /site
|
||||
COPY +assets-generated/ /site/assets/generated
|
||||
RUN bun x svelte-kit sync && bun run build
|
||||
RUN export VITE_BUILD_DATE=$(date -Iminutes -u | sed 's/+00:00//') && bun x svelte-kit sync && bun run build
|
||||
SAVE ARTIFACT build AS LOCAL build
|
||||
|
||||
deploy:
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
import { version } from '../../../package.json';
|
||||
import { i18n } from '$lib/i18n';
|
||||
import type { Snapshot } from '@sveltejs/kit';
|
||||
const buildDate = import.meta.env.VITE_BUILD_DATE || "???";
|
||||
|
||||
let search = '';
|
||||
|
||||
|
@ -219,7 +220,7 @@
|
|||
{/each}
|
||||
</div>
|
||||
</nav>
|
||||
<footer><a href="https://git.thm.place/thm/test-card">testcard v{version}</a></footer>
|
||||
<footer><a href="https://git.thm.place/thm/test-card">testcard v{version} {#if version.startsWith("0")}({buildDate}){/if}</a></footer>
|
||||
|
||||
<style>
|
||||
nav {
|
||||
|
|
Loading…
Add table
Reference in a new issue