aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-03 23:42:51 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-03-03 23:42:51 -0500
commit4e81d71c54afabe912d7a9597c8fd47ee832b8d7 (patch)
treed7765c1cb8c0e9839eb2f8c2581951e86715c7ac
parentReenable other build types (diff)
downloadjellyfin-packaging-4e81d71c54afabe912d7a9597c8fd47ee832b8d7.tar.gz
jellyfin-packaging-4e81d71c54afabe912d7a9597c8fd47ee832b8d7.tar.bz2
jellyfin-packaging-4e81d71c54afabe912d7a9597c8fd47ee832b8d7.zip
Add ability to disable Docker pushes
-rwxr-xr-xbuild.py24
1 files changed, 16 insertions, 8 deletions
diff --git a/build.py b/build.py
index 11e58cb..ba10daf 100755
--- a/build.py
+++ b/build.py
@@ -35,7 +35,7 @@ except Exception as e:
exit(1)
-def build_package_deb(jellyfin_version, build_type, build_arch, build_version):
+def build_package_deb(jellyfin_version, build_type, build_arch, build_version, no_push=False):
"""
Build a .deb package (Debian or Ubuntu) within a Docker container that matches the requested distribution version
"""
@@ -111,7 +111,7 @@ def build_package_deb(jellyfin_version, build_type, build_arch, build_version):
)
-def build_package_rpm(jellyfin_version, build_type, build_arch, build_version):
+def build_package_rpm(jellyfin_version, build_type, build_arch, build_version, no_push=False):
"""
Build a .rpm package (Fedora or CentOS) within a Docker container that matches the requested distribution version
"""
@@ -121,7 +121,7 @@ def build_package_rpm(jellyfin_version, build_type, build_arch, build_version):
pass
-def build_linux(jellyfin_version, build_type, build_arch, _build_version):
+def build_linux(jellyfin_version, build_type, build_arch, _build_version, no_push=False):
"""
Build a portable Linux archive
"""
@@ -163,7 +163,7 @@ def build_linux(jellyfin_version, build_type, build_arch, _build_version):
)
-def build_windows(jellyfin_version, build_type, _build_arch, _build_version):
+def build_windows(jellyfin_version, build_type, _build_arch, _build_version, no_push=False):
"""
Build a portable Windows archive
"""
@@ -205,7 +205,7 @@ def build_windows(jellyfin_version, build_type, _build_arch, _build_version):
)
-def build_macos(jellyfin_version, build_type, build_arch, _build_version):
+def build_macos(jellyfin_version, build_type, build_arch, _build_version, no_push=False):
"""
Build a portable MacOS archive
"""
@@ -247,7 +247,7 @@ def build_macos(jellyfin_version, build_type, build_arch, _build_version):
)
-def build_portable(jellyfin_version, build_type, _build_arch, _build_version):
+def build_portable(jellyfin_version, build_type, _build_arch, _build_version, no_push=False):
"""
Build a portable .NET archive
"""
@@ -276,7 +276,7 @@ def build_portable(jellyfin_version, build_type, _build_arch, _build_version):
)
-def build_docker(jellyfin_version, build_type, _build_arch, _build_version):
+def build_docker(jellyfin_version, build_type, _build_arch, _build_version, no_push=False):
"""
Build Docker images for all architectures and combining manifests
"""
@@ -345,6 +345,9 @@ def build_docker(jellyfin_version, build_type, _build_arch, _build_version):
log("")
+ if no_push:
+ return
+
def build_manifests(server, images):
# Build the manifests
log(f">> Building Docker manifests for {server}...")
@@ -510,7 +513,12 @@ if jellyfin_version == "master":
jellyfin_version = datetime.now().strftime("%Y%m%d%H")
log(f"NOTE: Autocorrecting 'master' version to {jellyfin_version}")
+if "--no-push" in sys.argv:
+ no_push = True
+else:
+ no_push = False
+
# Launch the builder function
function_definitions[configurations[build_type]["build_function"]](
- jellyfin_version, build_type, build_arch, build_version
+ jellyfin_version, build_type, build_arch, build_version, no_push=no_push
)
bgstack15