From b8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 18 Mar 2024 11:48:04 -0400 Subject: Support building docker images for only one arch --- build.py | 15 +++++++++++++-- 1 file 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"] -- cgit