From a14cab09473ab69f42b8803f62f9d575519ae123 Mon Sep 17 00:00:00 2001 From: Prateek Pandey Date: Tue, 21 Jun 2022 10:30:22 +0530 Subject: [PATCH] fix: use dev tag for init container local build target (#4142) Signed-off-by: prateekpandey14 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b5777ac2d1..9fb5e279af 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,7 @@ docker-get-initContainer-digest: @docker buildx imagetools inspect --raw $(REPO)/$(INITC_IMAGE):$(IMAGE_TAG) | perl -pe 'chomp if eof' | openssl dgst -sha256 | sed 's/^.* //' docker-build-initContainer-local: - CGO_ENABLED=0 GOOS=linux go build -o $(PWD)/$(INITC_PATH)/kyvernopre -ldflags=$(LD_FLAGS) $(PWD)/$(INITC_PATH) + CGO_ENABLED=0 GOOS=linux go build -o $(PWD)/$(INITC_PATH)/kyvernopre -ldflags=$(LD_FLAGS_DEV) $(PWD)/$(INITC_PATH) @docker build -f $(PWD)/$(INITC_PATH)/localDockerfile -t $(REPO)/$(INITC_IMAGE):$(IMAGE_TAG_DEV) $(PWD)/$(INITC_PATH) @docker tag $(REPO)/$(INITC_IMAGE):$(IMAGE_TAG_DEV) $(REPO)/$(INITC_IMAGE):latest