Display Docker image version in sidebar (#304)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
KM Koushik
2025-12-07 22:18:56 +11:00
committed by GitHub
parent 641d5f36d2
commit 3e3f6d521a
5 changed files with 46 additions and 0 deletions
+6
View File
@@ -46,7 +46,13 @@ RUN pnpm turbo run build --filter=web...
FROM base AS runner
WORKDIR /app
# Build arguments for version information
ARG APP_VERSION=unknown
ARG GIT_SHA=unknown
# Set version as environment variables
ENV NEXT_PUBLIC_APP_VERSION=$APP_VERSION
ENV NEXT_PUBLIC_GIT_SHA=$GIT_SHA
COPY --from=installer /app/apps/web/next.config.js .
COPY --from=installer /app/apps/web/package.json .
+2
View File
@@ -17,6 +17,8 @@ echo "Git SHA: $GIT_SHA"
docker build -f "$SCRIPT_DIR/Dockerfile" \
--progress=plain \
--build-arg APP_VERSION="$APP_VERSION" \
--build-arg GIT_SHA="$GIT_SHA" \
-t "unsend/unsend:latest" \
-t "unsend/unsend:$GIT_SHA" \
-t "unsend/unsend:$APP_VERSION" \