Add commit hiding for docker build fix

This commit is contained in:
Aria 2025-03-10 22:25:48 +11:00
parent e14a8dd894
commit be848a1d04
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
2 changed files with 4 additions and 3 deletions

View file

@ -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!" : `<a href=${commitURL}>${execSync(`git log -1 --pretty="format:%h"`)}</a>`;
---
<hr class="h-1" style="" />
@ -13,7 +14,7 @@ const commitURL = `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -
<p>
| <a href="https://github.com/BuyMyMojo/aria.coffee" target="_blank"
> <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
> |
</p>