adds empty build, push rules
This commit is contained in:
+9
-6
@@ -6,21 +6,24 @@ REGISTRY_DOMAIN := git.joeac.net
|
|||||||
REGISTRY_USER := joeac
|
REGISTRY_USER := joeac
|
||||||
|
|
||||||
container_image_name = $(REGISTRY_DOMAIN)/$(REGISTRY_USER)/$(CONTAINER_PREFIX)joeac.net-$(module)
|
container_image_name = $(REGISTRY_DOMAIN)/$(REGISTRY_USER)/$(CONTAINER_PREFIX)joeac.net-$(module)
|
||||||
|
is_containerised = $(filter $(COMPOSE_SERVICES),$(module))
|
||||||
|
|
||||||
define build_module_rule =
|
define build_module_rule =
|
||||||
.PHONY: build_$(module)
|
.PHONY: build_$(module)
|
||||||
build_$(module): make_$(module) $(module).Dockerfile
|
build_$(module): $(if $(is_containerised),make_$(module) $(module).Dockerfile)
|
||||||
IMAGE_PREFIX="$(IMAGE_PREFIX)" podman-compose build $(module)
|
$(if $(is_containerised),\
|
||||||
|
IMAGE_PREFIX="$(IMAGE_PREFIX)" podman-compose build $(module))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define push_module_rule =
|
define push_module_rule =
|
||||||
.PHONY: push_$(module)
|
.PHONY: push_$(module)
|
||||||
push_$(module): login_registry build_$(module)
|
push_$(module): $(if $(is_containerised),login_registry build_$(module))
|
||||||
podman push $(container_image_name)
|
$(if $(is_containerised),\
|
||||||
|
podman push $(container_image_name))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach module,$(COMPOSE_SERVICES),$(eval $(call build_module_rule)))
|
$(foreach module,$(MODULES),$(eval $(call build_module_rule)))
|
||||||
$(foreach module,$(COMPOSE_SERVICES),$(eval $(call push_module_rule)))
|
$(foreach module,$(MODULES),$(eval $(call push_module_rule)))
|
||||||
|
|
||||||
.PHONY: login_registry
|
.PHONY: login_registry
|
||||||
login_registry:
|
login_registry:
|
||||||
|
|||||||
Reference in New Issue
Block a user