aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-18 11:48:04 -0400
committerJoshua M. Boniface <joshua@boniface.me>2024-03-18 11:48:04 -0400
commitb8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4 (patch)
tree1ec81ecdb69aa9f255d3fea6f173f16612c4736f
parentAdd Windows installer submodule (diff)
downloadjellyfin-packaging-b8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4.tar.gz
jellyfin-packaging-b8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4.tar.bz2
jellyfin-packaging-b8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4.zip
Support building docker images for only one arch
-rwxr-xr-xbuild.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/build.py b/build.py
index b0fb0e7..db9ac9b 100755
--- a/build.py
+++ b/build.py
@@ -277,17 +277,28 @@ def build_portable(
def build_docker(
- jellyfin_version, build_type, _build_arch, _build_version, no_push=False
+ jellyfin_version, build_type, build_arch, _build_version, no_push=False
):
"""
- Build Docker images for all architectures and combining manifests
+ Build Docker images for one or all architectures and combining manifests
"""
log("> Building Docker images...")
log("")
+ if build_arch:
+ log(f"NOTE: Building only for arch {build_arch}")
+ log("")
+
# We build all architectures simultaneously to push a single tag, so no conditional checks
architectures = configurations["docker"]["archmaps"].keys()
+ if build_arch:
+ if build_arch not in architectures:
+ log(f"Error: Archtecture {build_arch} is not valid.")
+ exit(1)
+ else:
+ architectures = [build_arch]
+
# Set the dockerfile
dockerfile = configurations[build_type]["dockerfile"]
bgstack15