Skip to content

Commit

Permalink
makefile: add --load flag only for podman build (#1048)
Browse files Browse the repository at this point in the history
Signed-off-by: KevFan <[email protected]>
  • Loading branch information
KevFan authored Nov 26, 2024
1 parent ea2d074 commit 140bbcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ OS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
ARCH := $(shell uname -m | tr '[:upper:]' '[:lower:]')
# Container Engine to be used for building image and with kind
CONTAINER_ENGINE ?= docker
ifeq (podman,$(CONTAINER_ENGINE))
CONTAINER_ENGINE_EXTRA_FLAGS ?= --load
endif

# VERSION defines the project version for the bundle.
# Update this value when you upgrade the version of your project.
Expand Down Expand Up @@ -353,7 +356,7 @@ docker-build: ## Build docker image with the manager.
--build-arg DIRTY=$(DIRTY) \
--build-arg VERSION=v$(VERSION) \
--build-arg QUAY_IMAGE_EXPIRY=$(QUAY_IMAGE_EXPIRY) \
--load \
$(CONTAINER_ENGINE_EXTRA_FLAGS) \
-t $(IMG) .

docker-push: ## Push docker image with the manager.
Expand Down

0 comments on commit 140bbcc

Please sign in to comment.