diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-03-18 11:50:51 -0400 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-03-18 11:50:51 -0400 |
commit | a8f366ef651effc34c6b474190c6fe6ba1618a6d (patch) | |
tree | 75660e4798d19f737c6a339a6456ba0e814167e7 | |
parent | Support building docker images for only one arch (diff) | |
download | jellyfin-packaging-a8f366ef651effc34c6b474190c6fe6ba1618a6d.tar.gz jellyfin-packaging-a8f366ef651effc34c6b474190c6fe6ba1618a6d.tar.bz2 jellyfin-packaging-a8f366ef651effc34c6b474190c6fe6ba1618a6d.zip |
Abort pushes if envvars aren't set
-rwxr-xr-x | build.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -361,6 +361,10 @@ def build_docker( if no_push: return + if not getenv('DOCKER_USERNAME') or not getenv('DOCKER_TOKEN'): + log("Warning: No DOCKER_USERNAME or DOCKER_TOKEN in environment; skipping manifest build and push (DockerHub and GHCR).") + return + def build_manifests(server, images): # Build the manifests log(f">> Building Docker manifests for {server}...") |