From 8f95d4fcd458eb7edb5a56fc7f4daae92725804f Mon Sep 17 00:00:00 2001 From: SuperQ Date: Mon, 6 Apr 2026 10:14:43 +0200 Subject: [PATCH] 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 --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index cce3ef1d16..f8d0172026 100644 --- a/Makefile.common +++ b/Makefile.common @@ -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.