From a8f366ef651effc34c6b474190c6fe6ba1618a6d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 18 Mar 2024 11:50:51 -0400 Subject: Abort pushes if envvars aren't set --- build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.py b/build.py index db9ac9b..770b663 100755 --- a/build.py +++ b/build.py @@ -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}...") -- cgit