Simplify: just remove broken .git reference, let webpack use JELLYFIN_VERSION
This commit is contained in:
@@ -65,15 +65,8 @@ RUN apk add \
|
||||
WORKDIR ${SOURCE_DIR}
|
||||
COPY jellyfin-web .
|
||||
|
||||
# Initialize git repo so webpack can get version info
|
||||
# Remove submodule .git reference first
|
||||
RUN rm -f .git \
|
||||
&& git init \
|
||||
&& git config user.email "build@jellyfin.org" \
|
||||
&& git config user.name "Jellyfin Build" \
|
||||
&& git add -A \
|
||||
&& git commit -m "Build ${JELLYFIN_VERSION}" \
|
||||
&& git tag -a "v${JELLYFIN_VERSION}" -m "Version ${JELLYFIN_VERSION}"
|
||||
# Remove broken submodule .git reference
|
||||
RUN rm -f .git
|
||||
|
||||
RUN npm ci --no-audit --unsafe-perm \
|
||||
&& npm run build:production \
|
||||
|
||||
Reference in New Issue
Block a user