Skip to content

Commit

Permalink
feat: add version (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl authored Apr 8, 2024
1 parent dc7ae9a commit ef925bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile.ui
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ RUN npm run build
# Production image, copy all the files and run next
FROM base AS runner
ARG GIT_COMMIT_HASH=local
ARG KEEP_VERSION=local

WORKDIR /app
# Inject the git commit hash into the build
# This is being injected from the build script
ENV GIT_COMMIT_HASH=${GIT_COMMIT_HASH}
ENV KEEP_VERSION=${KEEP_VERSION}



Expand Down
1 change: 1 addition & 0 deletions keep-ui/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default async function RootLayout({ children }: RootLayoutProps) {
{process.env.GIT_COMMIT_HASH ? (
<div className="fixed right-2.5 bottom-2.5 text-gray-500 text-sm">
Build: {process.env.GIT_COMMIT_HASH}
Version: {process.env.KEEP_VERSION}
</div>
) : (
<Intercom />
Expand Down

0 comments on commit ef925bf

Please sign in to comment.