Skip to content

Commit

Permalink
Redirect stderr to stdout for docker cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboniface committed Mar 3, 2024
1 parent 5d7ed5b commit 64fa0d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,18 +356,18 @@ def build_docker(jellyfin_version, build_type, _build_arch, _build_version):
# Push the images and manifests to DockerHub (we are already logged in from GH Actions)
for image in images:
print(f">>> Pushing image {image} to DockerHub")
os.system(f"docker push {image}")
os.system(f"docker push {image} 2>&1")
for manifest in manifests:
print(f">>> Pushing manifest {manifest} to DockerHub")
os.system(f"docker manifest push --purge {manifest}")
os.system(f"docker manifest push --purge {manifest} 2>&1")

# Push the images and manifests to GHCR (we are already logged in from GH Actions)
for image in images:
print(f">>> Pushing image {image} to GHCR")
os.system(f"docker push ghcr.io/{image}")
os.system(f"docker push ghcr.io/{image} 2>&1")
for manifest in manifests:
print(f">>> Pushing manifest {manifest} to GHCR")
os.system(f"docker manifest push --purge ghcr.io/{manifest}")
os.system(f"docker manifest push --purge ghcr.io/{manifest} 2>&1")


def usage():
Expand Down

0 comments on commit 64fa0d7

Please sign in to comment.