Fix release version and date in UI. (#1025)

This commit is contained in:
Googol Lee
2024-08-27 21:46:29 +02:00
committed by GitHub
parent bef9e7c666
commit bb66a8b791
3 changed files with 10 additions and 1 deletions

View File

@@ -29,7 +29,11 @@ COPY ui/package.json ui/package-lock.json /app/ui
RUN npm ci
COPY ui/ /app/ui
RUN npm run build -- --base=$UI_PUBLIC_URL
RUN if [ "$BUILD_DATE" = "" ]; then \
export BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ'); \
export REACT_APP_BUILD_DATE=${BUILD_DATE}; \
fi; \
npm run build -- --base=$UI_PUBLIC_URL
### Build API ###
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-bookworm AS api