diff --git a/Dockerfile b/Dockerfile index 4322254..2cf943b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN wget https://github.com/shssoichiro/oxipng/releases/download/v9.1.3/oxipng_9 RUN apt-get install -y ./oxipng_9.1.3-1_amd64.deb RUN rm ./oxipng_9.1.3-1_amd64.deb -RUN pnpm run build +RUN PUBLIC_COMMIT="" pnpm run build ENV HOST=0.0.0.0 ENV PORT=4321 diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 1e77a60..04519c2 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -4,7 +4,8 @@ const buttonFormat = "gif"; import { Icon } from "astro-icon/components"; import { execSync } from "node:child_process"; -const commitURL = `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -1 --pretty="format:%H"`)}`; +const commitURL = import.meta.env.PUBLIC_COMMIT === "" ? "" : `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -1 --pretty="format:%H"`)}`; +const COMMIT = import.meta.env.PUBLIC_COMMIT === "" ? "Docker Build!" : `${execSync(`git log -1 --pretty="format:%h"`)}`; ---
@@ -13,7 +14,7 @@ const commitURL = `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -

| Source Code - Commit:{execSync(`git log -1 --pretty="format:%h"`)} | - Commit: | RSS Feed |