modded_mc = siverten/magma siverten/rlcraft mc_contexts = $(modded_mc) siverten/papermc siverten/waterfall game_contexts = $(mc_contexts) siverten/tshock contexts = siverten/bind9 siverten/oxen siverten/tor\ $(game_contexts) .PHONY: build push hub build_reg push_reg registry all build: $(foreach context,$(contexts),docker build $(context);) push: $(foreach context,$(contexts),docker push $(context);) hub: build push reg_contexts = xmr-stak build_reg: $(foreach context,$(reg_contexts),docker build registry.sivert.pw/$(context);) push_reg: $(foreach context,$(reg_contexts),docker push registry.sivert.pw/$(context);) registry: build_reg push_reg all: hub registry