ci: fix Dockerfile & ci

This commit is contained in:
JustSong
2024-01-01 19:23:46 +08:00
parent aa03c89133
commit 83f95935de
6 changed files with 38 additions and 18 deletions

View File

@@ -3,16 +3,7 @@ FROM node:16 as builder
WORKDIR /build
COPY ./web .
COPY ./VERSION .
RUN themes=$(cat THEMES) \
&& IFS=$'\n' \
&& for theme in $themes; do \
theme_path="web/$theme" \
&& echo "Building theme: $theme" \
&& cd $theme_path \
&& npm install \
&& DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build \
&& cd /app \
done
RUN chmod u+x ./build.sh && ./build.sh
FROM golang AS builder2