aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-03 21:30:17 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-03-03 21:30:42 -0500
commit35f2185eeb08ce7ab874db28ea2f24c3a3ad4ffb (patch)
treec3cf3bcff2d728c6c849c4a6b244f84b7fcafe88
parentDisable GHCR login for now (diff)
downloadjellyfin-packaging-35f2185eeb08ce7ab874db28ea2f24c3a3ad4ffb.tar.gz
jellyfin-packaging-35f2185eeb08ce7ab874db28ea2f24c3a3ad4ffb.tar.bz2
jellyfin-packaging-35f2185eeb08ce7ab874db28ea2f24c3a3ad4ffb.zip
Disable building and pushing
-rwxr-xr-xbuild.py164
1 files changed, 82 insertions, 82 deletions
diff --git a/build.py b/build.py
index 35c28ac..117e59f 100755
--- a/build.py
+++ b/build.py
@@ -344,88 +344,88 @@ def build_docker(jellyfin_version, build_type, _build_arch, _build_version):
log("")
- # Log in to docker hub
- os.system("docker login 2>&1")
-
- # Push the images to DockerHub
- for image in images:
- log(f">>> Pushing image {image} to DockerHub")
- log(f">>>> docker push {image} 2>&1")
- os.system(f"docker push {image} 2>&1")
-
- # Push the images to GHCR
- for image in ghcr_images:
- log(f">>> Pushing image {image} to GHCR")
- log(f">>>> docker push {image} 2>&1")
- os.system(f"docker push {image} 2>&1")
-
- # Build the manifests
- log(">> Building Docker manifests...")
- manifests = list()
-
- if version_suffix:
- log(">>> Building dated version manifest...")
- log(
- f">>>> docker manifest create {configurations['docker']['imagename']}:{jellyfin_version}.{date} {' '.join(images)}"
- )
- os.system(
- f"docker manifest create docker.io/{configurations['docker']['imagename']}:{jellyfin_version}.{date} {' '.join(images)}"
- )
- os.system(
- f"docker manifest create ghcr.io/{configurations['docker']['imagename']}:{jellyfin_version}.{date} {' '.join(images_ghcr)}"
- )
- manifests.append(
- f"{configurations['docker']['imagename']}:{jellyfin_version}.{date}"
- )
-
- log(">>> Building version manifest...")
- log(
- f">>>> docker manifest create {configurations['docker']['imagename']}:{jellyfin_version} {' '.join(images)}"
- )
- os.system(
- f"docker manifest create docker.io/{configurations['docker']['imagename']}:{jellyfin_version} {' '.join(images)}"
- )
- os.system(
- f"docker manifest create ghcr.io/{configurations['docker']['imagename']}:{jellyfin_version} {' '.join(images_ghcr)}"
- )
- manifests.append(f"{configurations['docker']['imagename']}:{jellyfin_version}")
-
- if is_latest:
- log(">>> Building latest manifest...")
- log(
- f">>>> docker manifest create {configurations['docker']['imagename']}:latest {' '.join(images)}"
- )
- os.system(
- f"docker manifest create docker.io/{configurations['docker']['imagename']}:latest {' '.join(images)}"
- )
- os.system(
- f"docker manifest create ghcr.io/{configurations['docker']['imagename']}:latest {' '.join(images_ghcr)}"
- )
- manifests.append(f"{configurations['docker']['imagename']}:latest")
- elif is_unstable:
- log(">>> Building unstable manifest...")
- log(
- f">>>> docker manifest create {configurations['docker']['imagename']}:unstable {' '.join(images)}"
- )
- os.system(
- f"docker manifest create docker.io/{configurations['docker']['imagename']}:unstable {' '.join(images)}"
- )
- os.system(
- f"docker manifest create ghcr.io/{configurations['docker']['imagename']}:unstable {' '.join(images_ghcr)}"
- )
- manifests.append(f"{configurations['docker']['imagename']}:unstable")
-
- # Push the images and manifests to DockerHub (we are already logged in from GH Actions)
- for manifest in manifests:
- log(f">>> Pushing manifest {manifest} to DockerHub")
- log(f">>>> docker manifest push --purge docker.io/{manifest} 2>&1")
- os.system(f"docker manifest push --purge docker.io/{manifest} 2>&1")
-
- # Push the images and manifests to GHCR (we are already logged in from GH Actions)
- for manifest in manifests:
- log(f">>> Pushing manifest {manifest} to GHCR")
- log(f">>>> docker manifest push --purge ghcr.io/{manifest} 2>&1")
- os.system(f"docker manifest push --purge ghcr.io/{manifest} 2>&1")
+# # Log in to docker hub
+# os.system("docker login 2>&1")
+#
+# # Push the images to DockerHub
+# for image in images:
+# log(f">>> Pushing image {image} to DockerHub")
+# log(f">>>> docker push {image} 2>&1")
+# os.system(f"docker push {image} 2>&1")
+#
+# # Push the images to GHCR
+# for image in images_ghcr:
+# log(f">>> Pushing image {image} to GHCR")
+# log(f">>>> docker push {image} 2>&1")
+# os.system(f"docker push {image} 2>&1")
+#
+# # Build the manifests
+# log(">> Building Docker manifests...")
+# manifests = list()
+#
+# if version_suffix:
+# log(">>> Building dated version manifest...")
+# log(
+# f">>>> docker manifest create {configurations['docker']['imagename']}:{jellyfin_version}.{date} {' '.join(images)}"
+# )
+# os.system(
+# f"docker manifest create docker.io/{configurations['docker']['imagename']}:{jellyfin_version}.{date} {' '.join(images)}"
+# )
+# os.system(
+# f"docker manifest create ghcr.io/{configurations['docker']['imagename']}:{jellyfin_version}.{date} {' '.join(images_ghcr)}"
+# )
+# manifests.append(
+# f"{configurations['docker']['imagename']}:{jellyfin_version}.{date}"
+# )
+#
+# log(">>> Building version manifest...")
+# log(
+# f">>>> docker manifest create {configurations['docker']['imagename']}:{jellyfin_version} {' '.join(images)}"
+# )
+# os.system(
+# f"docker manifest create docker.io/{configurations['docker']['imagename']}:{jellyfin_version} {' '.join(images)}"
+# )
+# os.system(
+# f"docker manifest create ghcr.io/{configurations['docker']['imagename']}:{jellyfin_version} {' '.join(images_ghcr)}"
+# )
+# manifests.append(f"{configurations['docker']['imagename']}:{jellyfin_version}")
+#
+# if is_latest:
+# log(">>> Building latest manifest...")
+# log(
+# f">>>> docker manifest create {configurations['docker']['imagename']}:latest {' '.join(images)}"
+# )
+# os.system(
+# f"docker manifest create docker.io/{configurations['docker']['imagename']}:latest {' '.join(images)}"
+# )
+# os.system(
+# f"docker manifest create ghcr.io/{configurations['docker']['imagename']}:latest {' '.join(images_ghcr)}"
+# )
+# manifests.append(f"{configurations['docker']['imagename']}:latest")
+# elif is_unstable:
+# log(">>> Building unstable manifest...")
+# log(
+# f">>>> docker manifest create {configurations['docker']['imagename']}:unstable {' '.join(images)}"
+# )
+# os.system(
+# f"docker manifest create docker.io/{configurations['docker']['imagename']}:unstable {' '.join(images)}"
+# )
+# os.system(
+# f"docker manifest create ghcr.io/{configurations['docker']['imagename']}:unstable {' '.join(images_ghcr)}"
+# )
+# manifests.append(f"{configurations['docker']['imagename']}:unstable")
+#
+# # Push the images and manifests to DockerHub (we are already logged in from GH Actions)
+# for manifest in manifests:
+# log(f">>> Pushing manifest {manifest} to DockerHub")
+# log(f">>>> docker manifest push --purge docker.io/{manifest} 2>&1")
+# os.system(f"docker manifest push --purge docker.io/{manifest} 2>&1")
+#
+# # Push the images and manifests to GHCR (we are already logged in from GH Actions)
+# for manifest in manifests:
+# log(f">>> Pushing manifest {manifest} to GHCR")
+# log(f">>>> docker manifest push --purge ghcr.io/{manifest} 2>&1")
+# os.system(f"docker manifest push --purge ghcr.io/{manifest} 2>&1")
def usage():
bgstack15