diff --git a/Makefile b/Makefile index eaf8114..a8e11d8 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,11 @@ build-base-image: download-csm-common # Pre-requisites: RHEL, buildah, podman .PHONY: podman podman: build-base-image - podman build -t csm-metrics-powerstore -f Dockerfile --build-arg BASEIMAGE=$(BASEIMAGE) --build-arg GOIMAGE=$(DEFAULT_GOIMAGE) . + podman build $(NOCACHE) -t csm-metrics-powerstore -f Dockerfile --build-arg BASEIMAGE=$(BASEIMAGE) --build-arg GOIMAGE=$(DEFAULT_GOIMAGE) . + +.PHONY: podman-no-cache +podman-no-cache: + @make podman NOCACHE="--no-cache" .PHONY: push push: