Fix: REACT_APP_VERSION Build-Argument für Nightly Badge im Header
This commit is contained in:
parent
8ae88be5e6
commit
136312467d
2 changed files with 5 additions and 0 deletions
2
.github/workflows/docker-build.yml
vendored
2
.github/workflows/docker-build.yml
vendored
|
|
@ -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 }}
|
||||||
|
|
|
||||||
|
|
@ -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) ---
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue