mirror of
https://github.com/ClipFusion-org/clipfusion.git
synced 2025-08-05 14:45:08 +00:00
dockerfile now logs git commit hash
This commit is contained in:
parent
01524ca4ce
commit
ad39e0d557
@ -13,8 +13,13 @@ const gitCommitHash = generateGitCommitHash();
|
|||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
generateBuildId: () => gitCommitHash,
|
generateBuildId: () => gitCommitHash,
|
||||||
env: {
|
webpack: (config, { webpack, buildId, isServer }) => {
|
||||||
BUILD_ID_ENV: gitCommitHash
|
config.plugins.push(
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
'process.env.BUILD_ID_ENV': JSON.stringify(buildId)
|
||||||
|
})
|
||||||
|
);
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,6 +38,8 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
|||||||
ARG GIT_COMMIT
|
ARG GIT_COMMIT
|
||||||
ENV GIT_COMMIT=$GIT_COMMIT
|
ENV GIT_COMMIT=$GIT_COMMIT
|
||||||
|
|
||||||
|
RUN echo ${GIT_COMMIT}
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
if [ -f yarn.lock ]; then yarn run build; \
|
if [ -f yarn.lock ]; then yarn run build; \
|
||||||
elif [ -f package-lock.json ]; then npm run build; \
|
elif [ -f package-lock.json ]; then npm run build; \
|
||||||
|
@ -10,6 +10,7 @@ import AscendingCard from "@/components/ascending-card";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import WideContainer from "@/components/wide-container";
|
import WideContainer from "@/components/wide-container";
|
||||||
|
|
||||||
|
|
||||||
export default function Settings(): ReactNode {
|
export default function Settings(): ReactNode {
|
||||||
const isMobile = useIsMobile();
|
const isMobile = useIsMobile();
|
||||||
|
|
||||||
@ -28,9 +29,9 @@ export default function Settings(): ReactNode {
|
|||||||
</WideContainer>
|
</WideContainer>
|
||||||
</SidebarTriggerAdjustable>
|
</SidebarTriggerAdjustable>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col items-center w-full">
|
<div className="flex flex-col justify-center items-center">
|
||||||
<div className="flex flex-col gap-1 md:gap-2 mt-1 md:mt-2">
|
<WideContainer>
|
||||||
<WideContainer>
|
<div className="flex flex-col gap-1 md:gap-2 mt-1 md:mt-2 justify-center">
|
||||||
<Link href="/settings/storage">
|
<Link href="/settings/storage">
|
||||||
<AscendingCard className="flex flex-row justify-between gap-2 p-4">
|
<AscendingCard className="flex flex-row justify-between gap-2 p-4">
|
||||||
<div className="flex flex-row justify-between items-center gap-3">
|
<div className="flex flex-row justify-between items-center gap-3">
|
||||||
@ -45,10 +46,9 @@ export default function Settings(): ReactNode {
|
|||||||
<ChevronRightIcon />
|
<ChevronRightIcon />
|
||||||
</AscendingCard>
|
</AscendingCard>
|
||||||
</Link>
|
</Link>
|
||||||
</WideContainer>
|
<p className="text-sm text-muted-foreground">Build ID: {process.env.BUILD_ID_ENV}</p>
|
||||||
<p className="text-sm text-muted-foreground">Build ID: {process.env.BUILD_ID_ENV}</p>
|
</div>
|
||||||
</div>
|
</WideContainer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user