From 9a29b5cbfe891ed3bcef9e10caa0b86cf7bbd317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Werner=20Putsch=C3=B6gl?= <132911917+wepudt@users.noreply.github.com> Date: Tue, 4 Jul 2023 08:16:57 +0200 Subject: [PATCH] using the digest in the image uri if supplied by DIGEST var. (#1914) --- hack/make/images.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hack/make/images.mk b/hack/make/images.mk index 985136e2f1..0e40322326 100644 --- a/hack/make/images.mk +++ b/hack/make/images.mk @@ -8,7 +8,14 @@ else TAG ?= snapshot endif -IMAGE_URI ?= "$(IMAGE):$(TAG)" +#use the digest if digest is set +ifeq ($(DIGEST),) + IMAGE_URI ?= "$(IMAGE):$(TAG)" +else + IMAGE_URI ?= "$(IMAGE):$(TAG)@$(DIGEST)" +endif + + ensure-tag-not-snapshot: ifeq ($(TAG), snapshot)