mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add bad web build branch hotfix
I hate this quick and dirty hack but it makes no sense to port to master. This fixes a bug whereby we'd build with the master Web branch on releases due to never checking out the right branch. This is already obsoleted in the master branch since #1925 already replaces this entire process for Debuntu builds, and others should be fixed with a more robust solution. That said, for the 10.4.z release chain, this ultra-quick solution fixes the problem without changing much.
This commit is contained in:
parent
7f5a070406
commit
b3fc995977
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=arm64
|
ENV ARCH=arm64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=armhf
|
ENV ARCH=armhf
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -14,7 +14,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -14,7 +14,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -14,7 +14,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=arm64
|
ENV ARCH=arm64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=armhf
|
ENV ARCH=armhf
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -7,6 +7,7 @@ ARG ARTIFACT_DIR=/dist
|
|||||||
ENV SOURCE_DIR=/jellyfin
|
ENV SOURCE_DIR=/jellyfin
|
||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Ubuntu build environment
|
# Prepare Ubuntu build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -20,7 +20,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
|
|||||||
ENV ARTIFACT_DIR=/dist
|
ENV ARTIFACT_DIR=/dist
|
||||||
ENV DEB_BUILD_OPTIONS=noddebs
|
ENV DEB_BUILD_OPTIONS=noddebs
|
||||||
ENV ARCH=amd64
|
ENV ARCH=amd64
|
||||||
|
ENV web_branch=release-10.4.z
|
||||||
|
|
||||||
# Prepare Debian build environment
|
# Prepare Debian build environment
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -20,7 +20,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
|
|||||||
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
|
||||||
pushd ${web_build_dir}
|
pushd ${web_build_dir}
|
||||||
if [[ -n ${web_branch} ]]; then
|
if [[ -n ${web_branch} ]]; then
|
||||||
checkout -b origin/${web_branch}
|
git checkout origin/${web_branch}
|
||||||
fi
|
fi
|
||||||
yarn install
|
yarn install
|
||||||
mkdir -p ${web_target}
|
mkdir -p ${web_target}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user