Fix: REACT_APP_VERSION Build-Argument für Nightly Badge im Header

This commit is contained in:
vibe-bot 2025-08-09 02:27:35 +02:00
parent 8ae88be5e6
commit 136312467d
2 changed files with 5 additions and 0 deletions

View file

@ -40,6 +40,8 @@ jobs:
with: with:
context: . context: .
push: true push: true
build-args: |
REACT_APP_VERSION=${{ steps.docker_tag.outputs.tag == 'main' && 'stable' || 'nightly' }}
tags: | tags: |
${{ env.IMAGE_NAME }}:latest ${{ env.IMAGE_NAME }}:latest
${{ env.IMAGE_NAME }}:${{ github.sha }} ${{ env.IMAGE_NAME }}:${{ github.sha }}

View file

@ -6,6 +6,9 @@ WORKDIR /app/web
COPY web/package*.json ./ COPY web/package*.json ./
RUN npm install --no-audit --no-fund RUN npm install --no-audit --no-fund
COPY web/ . COPY web/ .
# Umgebungsvariable für React Build verfügbar machen
ARG REACT_APP_VERSION=stable
ENV REACT_APP_VERSION=$REACT_APP_VERSION
RUN npm run build RUN npm run build
# --- Build server (npm) --- # --- Build server (npm) ---