From: Marek Marczykowski-Górecki Date: Mon, 7 Apr 2025 12:31:06 +0000 (+0200) Subject: CI: consistently use DOCKER_CMD in makefiles X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5606b982acd44cc1f0715c424a11b2e76420aa18;p=xen.git CI: consistently use DOCKER_CMD in makefiles This allows rebuilding containers using podman too. Signed-off-by: Marek Marczykowski-Górecki Reviewed-by: Stefano Stabellini --- diff --git a/automation/build/Makefile b/automation/build/Makefile index 4df43b0407..fedf7524da 100644 --- a/automation/build/Makefile +++ b/automation/build/Makefile @@ -31,8 +31,8 @@ clean: define CLEAN_RULE .PHONY: clean-$(1) clean-$(1): - if [ -n "$$$$(docker image ls -q $(REGISTRY)/$(subst /,:,$(1)))" ]; then \ - docker image rm $(REGISTRY)/$(subst /,:,$(1)); \ + if [ -n "$$$$($(DOCKER_CMD) image ls -q $(REGISTRY)/$(subst /,:,$(1)))" ]; then \ + $(DOCKER_CMD) image rm $(REGISTRY)/$(subst /,:,$(1)); \ fi endef diff --git a/automation/tests-artifacts/Makefile b/automation/tests-artifacts/Makefile index d055cd696b..80a60a94f3 100644 --- a/automation/tests-artifacts/Makefile +++ b/automation/tests-artifacts/Makefile @@ -10,9 +10,9 @@ help: @echo "To push container builds, set the env var PUSH" %: %.dockerfile ## Builds containers - docker build --pull -t $(REGISTRY)/$(@D):$(@F) -f $< $(