diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-03-03 17:05:25 -0500 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-03-03 17:05:25 -0500 |
commit | fb3889209afde334c9159caa17abe8d8d45c21eb (patch) | |
tree | d0a6def632e6d73d353ca6c021d14d396831706a | |
parent | Attempt to fix bad docker login (diff) | |
download | jellyfin-packaging-fb3889209afde334c9159caa17abe8d8d45c21eb.tar.gz jellyfin-packaging-fb3889209afde334c9159caa17abe8d8d45c21eb.tar.bz2 jellyfin-packaging-fb3889209afde334c9159caa17abe8d8d45c21eb.zip |
Push the "unstable" tag to Docker as well
-rwxr-xr-x | build.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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: |