dockerfiles/Makefile

27 lines
717 B
Makefile
Raw Normal View History

.PHONY: build push hub build_reg push_reg registry all
modded_mc = magma rlcraft
mc_contexts = $(modded_mc) papermc waterfall
game_contexts = $(mc_contexts) tshock
2021-09-14 12:59:53 +00:00
contexts = ansible bind9 oxen tor $(game_contexts)
2022-05-05 20:07:07 +00:00
build:
$(foreach context,$(contexts),docker build --pull siverten/$(context) -t siverten/$(context);)
2022-05-05 20:07:07 +00:00
push:
$(foreach context,$(contexts),docker push siverten/$(context);)
2022-05-05 20:07:07 +00:00
hub: build push
reg_contexts = #xmr-stak
2022-05-05 20:07:07 +00:00
build_reg:
$(foreach context,$(reg_contexts),docker build --pull $(context) -t $(context);docker tag $(context) registry.42069.no/$(context))
2022-05-05 20:07:07 +00:00
push_reg:
$(foreach context,$(reg_contexts),docker push registry.42069.no/$(context);)
2022-05-05 20:07:07 +00:00
registry: build_reg push_reg
all: hub registry
2021-09-14 12:59:53 +00:00