From fa4d275cc01c4eb154d0172f45533ee6b001750c Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 1 Jul 2026 17:11:59 +0100 Subject: pulls out container.mk --- container.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 container.mk (limited to 'container.mk') diff --git a/container.mk b/container.mk new file mode 100644 index 0000000..3b1e5ae --- /dev/null +++ b/container.mk @@ -0,0 +1,18 @@ +define build_module_rule = +.PHONY: build_$(module) +build_$(module): make_$(module) $(module).Dockerfile + podman-compose build $(module) +endef + +define push_module_rule = +.PHONY: push_$(module) +push_$(module): login_registry build_$(module) + podman push $(container_image_name) +endef + +$(foreach module,$(COMPOSE_SERVICES),$(eval $(call build_module_rule))) +$(foreach module,$(COMPOSE_SERVICES),$(eval $(call push_module_rule))) + +.PHONY: login_registry +login_registry: + podman login $(REGISTRY_DOMAIN) -- cgit v1.2.3