Skip to content

Commit

Permalink
using the digest in the image uri if supplied by DIGEST var. (#1914)
Browse files Browse the repository at this point in the history
  • Loading branch information
wepudt committed Jul 4, 2023
1 parent 1b1f6a6 commit 9a29b5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hack/make/images.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a29b5c

Please sign in to comment.