Show the release version in the sidebar footer
release gate / check (push) Failing after 6m58s
release / smoke (push) Successful in 10m23s
release / publish (push) Failing after 9m50s

Baked at image build time: web/Dockerfile takes ARG SUPERBRAIN_VERSION
(default dev) into NEXT_PUBLIC_SUPERBRAIN_VERSION; the release workflow
passes the tag, README Option B gains the matching --build-arg, and local
compose builds show 'dev build'. Rendered muted under the sidebar footer
when expanded, so any deployment can be identified from the UI alone.
This commit is contained in:
Andrew S Erwin
2026-11-05 13:26:12 -06:00
parent 2e95190cac
commit 2ec157e160
4 changed files with 19 additions and 1 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ FROM node:22.23.3-alpine3.24 AS build
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
# Release version baked into the client bundle (sidebar footer). The release
# workflow passes the tag as SUPERBRAIN_VERSION; every other build keeps the
# default and the UI shows "dev build".
ARG SUPERBRAIN_VERSION=dev
ENV NEXT_TELEMETRY_DISABLED=1 NEXT_PUBLIC_SUPERBRAIN_VERSION=$SUPERBRAIN_VERSION
RUN yarn build
FROM node:22.23.3-alpine3.24 AS runtime