From 4c3a68b72fd91a85a332161b9cf181566cef9289 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 12 Aug 2026 17:21:13 +0100 Subject: remove remaining make stuff --- make/container.mk | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 make/container.mk (limited to 'make/container.mk') diff --git a/make/container.mk b/make/container.mk deleted file mode 100644 index 4c6702a..0000000 --- a/make/container.mk +++ /dev/null @@ -1,28 +0,0 @@ -REGISTRY_DOMAIN := git.joeac.net -REGISTRY_USER := joeac - -container_image_name = $(shell $(COMPOSE_CMD) config | yq ".services.$(module).image") -is_containerised = $(filter $(COMPOSE_SERVICES),$(module)) -is_own_image = $(filter git.joeac.net/%,$(container_image_name)) -has_dockerfile = $(shell test -f $(module).Dockerfile) - -define build_module_rule = -.PHONY: build_$(module) -build_$(module): $(if $(is_containerised),make_$(module) $(if $(has_dockerfile),$(module).Dockerfile)) - $(if $(is_containerised),\ - $(COMPOSE_CMD) build $(module)) -endef - -define push_module_rule = -.PHONY: push_$(module) -push_$(module): $(if $(is_containerised),login_registry) - $(if $(is_containerised),$(if $(is_own_image),\ - podman push $(container_image_name))) -endef - -$(foreach module,$(MODULES),$(eval $(call build_module_rule))) -$(foreach module,$(MODULES),$(eval $(call push_module_rule))) - -.PHONY: login_registry -login_registry: - podman login $(REGISTRY_DOMAIN) -- cgit v1.2.3