Fix Makefile.common for no Dockerfile

Avoid trying to parse a non-existent Dockerfile by adding the base
variant into the wildcard function list. This avoids `sed` errors on
repos with no Dockerfile. (i.e. promu)

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
SuperQ 2026-04-06 10:14:43 +02:00
parent 477bbb6b2c
commit 8f95d4fcd4
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1

View File

@ -91,7 +91,7 @@ $(error DOCKERFILE_PATH is deprecated. Use DOCKERFILE_VARIANTS ?= $(DOCKERFILE_P
endif
DOCKER_ARCHS ?= amd64
DOCKERFILE_VARIANTS ?= Dockerfile $(wildcard Dockerfile.*)
DOCKERFILE_VARIANTS ?= $(wildcard Dockerfile Dockerfile.*)
# Function to extract variant from Dockerfile label.
# Returns the variant name from io.prometheus.image.variant label, or "default" if not found.