2022-06-19 14:05:31 +00:00
|
|
|
.PHONY: build push hub build_reg push_reg registry all
|
|
|
|
|
2023-02-06 10:52:21 +00:00
|
|
|
#modded_mc = siverten/magma siverten/rlcraft
|
|
|
|
#mc_contexts = $(modded_mc) siverten/papermc siverten/waterfall
|
|
|
|
#game_contexts = $(mc_contexts) siverten/tshock
|
2021-09-14 12:59:53 +00:00
|
|
|
|
2023-02-06 10:52:21 +00:00
|
|
|
contexts = siverten/bind9 siverten/oxen siverten/tor # $(game_contexts)
|
2021-09-14 15:13:40 +00:00
|
|
|
|
2022-05-05 20:07:07 +00:00
|
|
|
build:
|
2022-06-19 14:05:31 +00:00
|
|
|
$(foreach context,$(contexts),docker build --pull $(context);)
|
2022-05-05 20:07:07 +00:00
|
|
|
push:
|
|
|
|
$(foreach context,$(contexts),docker push $(context);)
|
|
|
|
hub: build push
|
|
|
|
|
2022-06-19 14:05:31 +00:00
|
|
|
|
2023-02-06 10:52:21 +00:00
|
|
|
reg_contexts = #xmr-stak
|
2022-05-05 20:07:07 +00:00
|
|
|
|
|
|
|
build_reg:
|
2022-06-19 14:05:31 +00:00
|
|
|
$(foreach context,$(reg_contexts),docker build --pull $(context);docker tag $(context) registry.42069.no/$(context))
|
2022-05-05 20:07:07 +00:00
|
|
|
push_reg:
|
2022-06-19 14:05:31 +00:00
|
|
|
$(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
|
|
|
|