aboutsummaryrefslogtreecommitdiff
path: root/deployment
diff options
context:
space:
mode:
authorJoshua Boniface <joshua@boniface.me>2019-11-24 15:10:38 -0500
committerJoshua Boniface <joshua@boniface.me>2019-11-24 15:42:43 -0500
commitb3fc995977cd5f76b28013e03bfd5992c99d1364 (patch)
tree67215a4e415452e115401589ecef4ecc15344fdb /deployment
parent7f5a0704067e95f9809bfa0f55deeac551160706 (diff)
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.
Diffstat (limited to 'deployment')
-rw-r--r--deployment/debian-package-arm64/Dockerfile.amd641
-rw-r--r--deployment/debian-package-arm64/Dockerfile.arm641
-rwxr-xr-xdeployment/debian-package-arm64/docker-build.sh2
-rw-r--r--deployment/debian-package-armhf/Dockerfile.amd641
-rw-r--r--deployment/debian-package-armhf/Dockerfile.armhf1
-rwxr-xr-xdeployment/debian-package-armhf/docker-build.sh2
-rw-r--r--deployment/debian-package-x64/Dockerfile1
-rwxr-xr-xdeployment/debian-package-x64/docker-build.sh2
-rw-r--r--deployment/linux-x64/Dockerfile1
-rwxr-xr-xdeployment/linux-x64/docker-build.sh2
-rw-r--r--deployment/macos/Dockerfile1
-rwxr-xr-xdeployment/macos/docker-build.sh2
-rw-r--r--deployment/portable/Dockerfile1
-rwxr-xr-xdeployment/portable/docker-build.sh2
-rw-r--r--deployment/ubuntu-package-arm64/Dockerfile.amd641
-rw-r--r--deployment/ubuntu-package-arm64/Dockerfile.arm641
-rwxr-xr-xdeployment/ubuntu-package-arm64/docker-build.sh2
-rw-r--r--deployment/ubuntu-package-armhf/Dockerfile.amd641
-rw-r--r--deployment/ubuntu-package-armhf/Dockerfile.armhf1
-rwxr-xr-xdeployment/ubuntu-package-armhf/docker-build.sh2
-rw-r--r--deployment/ubuntu-package-x64/Dockerfile1
-rwxr-xr-xdeployment/ubuntu-package-x64/docker-build.sh2
-rw-r--r--deployment/win-x64/Dockerfile1
-rwxr-xr-xdeployment/win-x64/docker-build.sh2
-rw-r--r--deployment/win-x86/Dockerfile1
-rwxr-xr-xdeployment/win-x86/docker-build.sh2
26 files changed, 26 insertions, 11 deletions
diff --git a/deployment/debian-package-arm64/Dockerfile.amd64 b/deployment/debian-package-arm64/Dockerfile.amd64
index 5644c1470..eeb1f82dc 100644
--- a/deployment/debian-package-arm64/Dockerfile.amd64
+++ b/deployment/debian-package-arm64/Dockerfile.amd64
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/debian-package-arm64/Dockerfile.arm64 b/deployment/debian-package-arm64/Dockerfile.arm64
index 438436766..db04dde11 100644
--- a/deployment/debian-package-arm64/Dockerfile.arm64
+++ b/deployment/debian-package-arm64/Dockerfile.arm64
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=arm64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/debian-package-arm64/docker-build.sh b/deployment/debian-package-arm64/docker-build.sh
index 7a13bafcb..6b3297753 100755
--- a/deployment/debian-package-arm64/docker-build.sh
+++ b/deployment/debian-package-arm64/docker-build.sh
@@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/debian-package-armhf/Dockerfile.amd64 b/deployment/debian-package-armhf/Dockerfile.amd64
index b05f10def..8fe743585 100644
--- a/deployment/debian-package-armhf/Dockerfile.amd64
+++ b/deployment/debian-package-armhf/Dockerfile.amd64
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/debian-package-armhf/Dockerfile.armhf b/deployment/debian-package-armhf/Dockerfile.armhf
index 6729d8f38..0fa646b6e 100644
--- a/deployment/debian-package-armhf/Dockerfile.armhf
+++ b/deployment/debian-package-armhf/Dockerfile.armhf
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=armhf
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/debian-package-armhf/docker-build.sh b/deployment/debian-package-armhf/docker-build.sh
index c48ccb3fb..7eb73a280 100755
--- a/deployment/debian-package-armhf/docker-build.sh
+++ b/deployment/debian-package-armhf/docker-build.sh
@@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/debian-package-x64/Dockerfile b/deployment/debian-package-x64/Dockerfile
index 2f97d3944..79dbc6907 100644
--- a/deployment/debian-package-x64/Dockerfile
+++ b/deployment/debian-package-x64/Dockerfile
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/debian-package-x64/docker-build.sh b/deployment/debian-package-x64/docker-build.sh
index 97bc45a06..ce70f28a8 100755
--- a/deployment/debian-package-x64/docker-build.sh
+++ b/deployment/debian-package-x64/docker-build.sh
@@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/linux-x64/Dockerfile b/deployment/linux-x64/Dockerfile
index d634b55de..44ded66ec 100644
--- a/deployment/linux-x64/Dockerfile
+++ b/deployment/linux-x64/Dockerfile
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/linux-x64/docker-build.sh b/deployment/linux-x64/docker-build.sh
index 8860f943c..bb899a82f 100755
--- a/deployment/linux-x64/docker-build.sh
+++ b/deployment/linux-x64/docker-build.sh
@@ -14,7 +14,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/macos/Dockerfile b/deployment/macos/Dockerfile
index 406a2d853..63f599fbe 100644
--- a/deployment/macos/Dockerfile
+++ b/deployment/macos/Dockerfile
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/macos/docker-build.sh b/deployment/macos/docker-build.sh
index 1b4a554e6..af11214ee 100755
--- a/deployment/macos/docker-build.sh
+++ b/deployment/macos/docker-build.sh
@@ -14,7 +14,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/portable/Dockerfile b/deployment/portable/Dockerfile
index bdbf978fe..94cf34fba 100644
--- a/deployment/portable/Dockerfile
+++ b/deployment/portable/Dockerfile
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/portable/docker-build.sh b/deployment/portable/docker-build.sh
index 0cc6e84f0..1127a90a1 100755
--- a/deployment/portable/docker-build.sh
+++ b/deployment/portable/docker-build.sh
@@ -14,7 +14,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/ubuntu-package-arm64/Dockerfile.amd64 b/deployment/ubuntu-package-arm64/Dockerfile.amd64
index 838e70d50..e435c9be4 100644
--- a/deployment/ubuntu-package-arm64/Dockerfile.amd64
+++ b/deployment/ubuntu-package-arm64/Dockerfile.amd64
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/ubuntu-package-arm64/Dockerfile.arm64 b/deployment/ubuntu-package-arm64/Dockerfile.arm64
index 789dcc15a..fab8bd6e6 100644
--- a/deployment/ubuntu-package-arm64/Dockerfile.arm64
+++ b/deployment/ubuntu-package-arm64/Dockerfile.arm64
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=arm64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/ubuntu-package-arm64/docker-build.sh b/deployment/ubuntu-package-arm64/docker-build.sh
index 7a13bafcb..6b3297753 100755
--- a/deployment/ubuntu-package-arm64/docker-build.sh
+++ b/deployment/ubuntu-package-arm64/docker-build.sh
@@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/ubuntu-package-armhf/Dockerfile.amd64 b/deployment/ubuntu-package-armhf/Dockerfile.amd64
index d1123e0b6..0216eb455 100644
--- a/deployment/ubuntu-package-armhf/Dockerfile.amd64
+++ b/deployment/ubuntu-package-armhf/Dockerfile.amd64
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/ubuntu-package-armhf/Dockerfile.armhf b/deployment/ubuntu-package-armhf/Dockerfile.armhf
index c9e093e51..45d6cb002 100644
--- a/deployment/ubuntu-package-armhf/Dockerfile.armhf
+++ b/deployment/ubuntu-package-armhf/Dockerfile.armhf
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=armhf
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/ubuntu-package-armhf/docker-build.sh b/deployment/ubuntu-package-armhf/docker-build.sh
index c48ccb3fb..7eb73a280 100755
--- a/deployment/ubuntu-package-armhf/docker-build.sh
+++ b/deployment/ubuntu-package-armhf/docker-build.sh
@@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/ubuntu-package-x64/Dockerfile b/deployment/ubuntu-package-x64/Dockerfile
index 1749d2ad0..a0e2802e6 100644
--- a/deployment/ubuntu-package-x64/Dockerfile
+++ b/deployment/ubuntu-package-x64/Dockerfile
@@ -7,6 +7,7 @@ ARG ARTIFACT_DIR=/dist
ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
+ENV web_branch=release-10.4.z
# Prepare Ubuntu build environment
RUN apt-get update \
diff --git a/deployment/ubuntu-package-x64/docker-build.sh b/deployment/ubuntu-package-x64/docker-build.sh
index 97bc45a06..ce70f28a8 100755
--- a/deployment/ubuntu-package-x64/docker-build.sh
+++ b/deployment/ubuntu-package-x64/docker-build.sh
@@ -17,7 +17,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/win-x64/Dockerfile b/deployment/win-x64/Dockerfile
index 7f64c7dae..221d44b0f 100644
--- a/deployment/win-x64/Dockerfile
+++ b/deployment/win-x64/Dockerfile
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/win-x64/docker-build.sh b/deployment/win-x64/docker-build.sh
index 3f1ad78b5..9f9ccee93 100755
--- a/deployment/win-x64/docker-build.sh
+++ b/deployment/win-x64/docker-build.sh
@@ -20,7 +20,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}
diff --git a/deployment/win-x86/Dockerfile b/deployment/win-x86/Dockerfile
index fb5f5d6b6..8510f8dd2 100644
--- a/deployment/win-x86/Dockerfile
+++ b/deployment/win-x86/Dockerfile
@@ -9,6 +9,7 @@ ENV SOURCE_DIR=/jellyfin
ENV ARTIFACT_DIR=/dist
ENV DEB_BUILD_OPTIONS=noddebs
ENV ARCH=amd64
+ENV web_branch=release-10.4.z
# Prepare Debian build environment
RUN apt-get update \
diff --git a/deployment/win-x86/docker-build.sh b/deployment/win-x86/docker-build.sh
index 7d79ba495..a41f53d0e 100755
--- a/deployment/win-x86/docker-build.sh
+++ b/deployment/win-x86/docker-build.sh
@@ -20,7 +20,7 @@ web_target="${SOURCE_DIR}/MediaBrowser.WebDashboard/jellyfin-web"
git clone https://github.com/jellyfin/jellyfin-web.git ${web_build_dir}/
pushd ${web_build_dir}
if [[ -n ${web_branch} ]]; then
- checkout -b origin/${web_branch}
+ git checkout origin/${web_branch}
fi
yarn install
mkdir -p ${web_target}