Display Docker image version in sidebar (#304)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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 .
|
||||
|
||||
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user