From e7722f41faf3d4aa22cd019061120952276fc97a Mon Sep 17 00:00:00 2001 From: Zeort Date: Thu, 10 Oct 2024 10:09:59 +0300 Subject: [PATCH] fix sha assignment --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b208260..b93df7d 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ endif release: manifests kustomize rm -rf release-$(VERSION) mkdir -p release-$(VERSION) - IMG_SHA=$(shell docker inspect --format='{{index .RepoDigests 0}}' ${REGISTRY}/${IMG}) + $(eval IMG_SHA = $(shell docker inspect --format='{{index .RepoDigests 0}}' ${REGISTRY}/${IMG})) cp default-cr.yaml release-$(VERSION)/cfapi-default-cr.yaml $(KUSTOMIZE) build config/crd > release-$(VERSION)/cfapi-crd.yaml pushd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG_SHA) && popd