fix: pass commit short hash as version to UI sidebar
Some checks failed
CI / build (push) Failing after 38s
CI / cleanup-branch (push) Has been skipped
CI / docker (push) Has been skipped
CI / deploy (push) Has been skipped
CI / deploy-feature (push) Has been skipped

Add VITE_APP_VERSION build arg to UI Dockerfile, pass short SHA from
CI docker build step. vite.config.ts truncates to 7 chars so both
CI build and Docker build produce consistent short hashes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-06 22:37:46 +02:00
parent 1386e80670
commit 281e168790
3 changed files with 6 additions and 2 deletions

View File

@@ -14,7 +14,9 @@ RUN echo "//gitea.siegeln.net/api/packages/cameleer/npm/:_authToken=${REGISTRY_T
rm -f .npmrc
ARG VITE_ENV_NAME=PRODUCTION
ARG VITE_APP_VERSION=dev
ENV VITE_ENV_NAME=$VITE_ENV_NAME
ENV VITE_APP_VERSION=$VITE_APP_VERSION
RUN npm run build
FROM nginx:1.27-alpine