aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-03 17:05:25 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-03-03 17:05:25 -0500
commitfb3889209afde334c9159caa17abe8d8d45c21eb (patch)
treed0a6def632e6d73d353ca6c021d14d396831706a
parentAttempt to fix bad docker login (diff)
downloadjellyfin-packaging-fb3889209afde334c9159caa17abe8d8d45c21eb.tar.gz
jellyfin-packaging-fb3889209afde334c9159caa17abe8d8d45c21eb.tar.bz2
jellyfin-packaging-fb3889209afde334c9159caa17abe8d8d45c21eb.zip
Push the "unstable" tag to Docker as well
-rwxr-xr-xbuild.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.py b/build.py
index 6a53479..da5f4a2 100755
--- a/build.py
+++ b/build.py
@@ -289,9 +289,11 @@ def build_docker(jellyfin_version, build_type, _build_arch, _build_version):
# Determine if this is a "latest"-type image (v in jellyfin_version) or not
if "v" in jellyfin_version:
is_latest = True
+ is_unstable = False
version_suffix = True
else:
is_latest = False
+ is unstable = True
version_suffix = False
jellyfin_version = jellyfin_version.replace("v", "")
@@ -355,6 +357,12 @@ def build_docker(jellyfin_version, build_type, _build_arch, _build_version):
f"docker manifest create --amend {configurations['docker']['imagename']}:latest {' '.join(images)}"
)
manifests.append(f"{configurations['docker']['imagename']}:latest")
+ elif is_unstable:
+ log(">>> Building unstable manifest...")
+ os.system(
+ f"docker manifest create --amend {configurations['docker']['imagename']}:unstable {' '.join(images)}"
+ )
+ manifests.append(f"{configurations['docker']['imagename']}:unstable")
# Push the images and manifests to DockerHub (we are already logged in from GH Actions)
for image in images:
bgstack15