Skip to content

Commit f6b443f

Browse files
committed
Use CONTAINER_TOOL in catalog and bundle targets
The catalog-build and bundle-build targets did not respect the CONTAINER_TOOL variable for selecting the container backend (docker vs podman). Update both targets to use CONTAINER_TOOL (docker is still the default one -> nothing changes in terms of the default behavior).
1 parent 2e170ee commit f6b443f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metada
336336

337337
.PHONY: bundle-build
338338
bundle-build: ## Build the bundle image.
339-
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .
339+
$(CONTAINER_TOOL) build -f bundle.Dockerfile -t $(BUNDLE_IMG) .
340340

341341
.PHONY: bundle-push
342342
bundle-push: ## Push the bundle image.
@@ -373,7 +373,7 @@ endif
373373
# https://github.com/operator-framework/community-operators/blob/7f1438c/docs/packaging-operator.md#updating-your-existing-operator
374374
.PHONY: catalog-build
375375
catalog-build: opm ## Build a catalog image.
376-
$(OPM) index add --container-tool docker --mode semver --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT)
376+
$(OPM) index add --container-tool $(CONTAINER_TOOL) --mode semver --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT)
377377

378378
# Push the catalog image.
379379
.PHONY: catalog-push

0 commit comments

Comments
 (0)