mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-04 20:06:12 +02:00
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:
parent
477bbb6b2c
commit
8f95d4fcd4
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user