diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-03-18 11:48:04 -0400 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-03-18 11:48:04 -0400 |
commit | b8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4 (patch) | |
tree | 1ec81ecdb69aa9f255d3fea6f173f16612c4736f | |
parent | Add Windows installer submodule (diff) | |
download | jellyfin-packaging-b8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4.tar.gz jellyfin-packaging-b8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4.tar.bz2 jellyfin-packaging-b8f27e85ff1fc711f4fbd57ea2527ebcc097a8e4.zip |
Support building docker images for only one arch
-rwxr-xr-x | build.py | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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"] |