aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-18 12:15:07 -0400
committerJoshua M. Boniface <joshua@boniface.me>2024-03-18 12:15:07 -0400
commit5295c46936ef7b883c38a839328441ca6be088d8 (patch)
tree31a4db9518cb531f7b746c0e5e4c7363521856c1
parentSwitch build.py to argparse (diff)
downloadjellyfin-packaging-5295c46936ef7b883c38a839328441ca6be088d8.tar.gz
jellyfin-packaging-5295c46936ef7b883c38a839328441ca6be088d8.tar.bz2
jellyfin-packaging-5295c46936ef7b883c38a839328441ca6be088d8.zip
Avoid ghcr.io tag if no_push
-rwxr-xr-xbuild.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.py b/build.py
index aedda11..eb30c54 100755
--- a/build.py
+++ b/build.py
@@ -354,8 +354,9 @@ def build_docker(
)
images_hub.append(imagename)
- os.system(f"docker image tag {imagename} ghcr.io/{imagename}")
- images_ghcr.append(f"ghcr.io/{imagename}")
+ if not no_push:
+ os.system(f"docker image tag {imagename} ghcr.io/{imagename}")
+ images_ghcr.append(f"ghcr.io/{imagename}")
log("")
bgstack15