Update
Some checks failed
test / check-update (push) Failing after 4s
test / check-build (push) Successful in 6s

This commit is contained in:
estebanthi
2025-10-09 11:36:34 +02:00
parent d5fa817ee9
commit 34b147260e

View File

@@ -14,6 +14,13 @@ DOCKER_REGISTRY_HOST=${DOCKER_REGISTRY_HOST:-""} # e.g. registry.example.com
BASE_DIR="$( cd "$(dirname "$0")" && pwd )" BASE_DIR="$( cd "$(dirname "$0")" && pwd )"
source "${BASE_DIR}/versions.sh" source "${BASE_DIR}/versions.sh"
# Fail if we push to hub
if [ "${DOCKER_BUILD}" = "1" ] && [ "${DOCKER_PUSH}" = "1" ] && [ -z "${DOCKER_REGISTRY_HOST}" ]; then
echo "ERROR: DOCKER_REGISTRY_HOST is empty but DOCKER_PUSH=1. This would push to Docker Hub (docker.io)."
echo "Set DOCKER_REGISTRY_HOST to your registry or log in to Docker Hub explicitly if that is intended."
exit 1
fi
# If a target version is provided to the build script, only build this one # If a target version is provided to the build script, only build this one
if [ "$#" -ge "1" ] if [ "$#" -ge "1" ]
then then