Add commit hiding for docker build fix
This commit is contained in:
parent
e14a8dd894
commit
be848a1d04
2 changed files with 4 additions and 3 deletions
|
@ -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 apt-get install -y ./oxipng_9.1.3-1_amd64.deb
|
||||||
RUN rm ./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 HOST=0.0.0.0
|
||||||
ENV PORT=4321
|
ENV PORT=4321
|
||||||
|
|
|
@ -4,7 +4,8 @@ const buttonFormat = "gif";
|
||||||
import { Icon } from "astro-icon/components";
|
import { Icon } from "astro-icon/components";
|
||||||
import { execSync } from "node:child_process";
|
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!" : `<a href=${commitURL}>${execSync(`git log -1 --pretty="format:%h"`)}</a>`;
|
||||||
---
|
---
|
||||||
|
|
||||||
<hr class="h-1" style="" />
|
<hr class="h-1" style="" />
|
||||||
|
@ -13,7 +14,7 @@ const commitURL = `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -
|
||||||
<p>
|
<p>
|
||||||
| <a href="https://github.com/BuyMyMojo/aria.coffee" target="_blank"
|
| <a href="https://github.com/BuyMyMojo/aria.coffee" target="_blank"
|
||||||
> <Icon name="mdi:source-branch" class={"svg-inline"}/>Source Code</a
|
> <Icon name="mdi:source-branch" class={"svg-inline"}/>Source Code</a
|
||||||
> - Commit:<a href={commitURL}>{execSync(`git log -1 --pretty="format:%h"`)}</a> | <a href="https://aria.coffee/rss.xml" target="_blank"
|
> - Commit:<Fragment set:html={COMMIT} /> | <a href="https://aria.coffee/rss.xml" target="_blank"
|
||||||
> <Icon name="mdi:rss" class={"svg-inline"}/>RSS Feed</a
|
> <Icon name="mdi:rss" class={"svg-inline"}/>RSS Feed</a
|
||||||
> |
|
> |
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue