2022-06-19 16:05:31 +02:00
|
|
|
.PHONY: build push hub build_reg push_reg registry all
|
|
|
|
|
2023-02-06 13:45:39 +01:00
|
|
|
modded_mc = magma rlcraft
|
|
|
|
mc_contexts = $(modded_mc) papermc waterfall
|
|
|
|
game_contexts = $(mc_contexts) tshock
|
2021-09-14 14:59:53 +02:00
|
|
|
|
2023-02-06 13:45:39 +01:00
|
|
|
contexts = ansible bind9 oxen tor $(game_contexts)
|
2021-09-14 17:13:40 +02:00
|
|
|
|
2022-05-05 22:07:07 +02:00
|
|
|
build:
|
2023-02-06 13:45:39 +01:00
|
|
|
$(foreach context,$(contexts),docker build --pull siverten/$(context) -t siverten/$(context);)
|
2022-05-05 22:07:07 +02:00
|
|
|
push:
|
2023-02-06 13:45:39 +01:00
|
|
|
$(foreach context,$(contexts),docker push siverten/$(context);)
|
2022-05-05 22:07:07 +02:00
|
|
|
hub: build push
|
|
|
|
|
2022-06-19 16:05:31 +02:00
|
|
|
|
2023-02-06 11:52:21 +01:00
|
|
|
reg_contexts = #xmr-stak
|
2022-05-05 22:07:07 +02:00
|
|
|
|
|
|
|
build_reg:
|
2023-02-06 12:55:05 +01:00
|
|
|
$(foreach context,$(reg_contexts),docker build --pull $(context) -t $(context);docker tag $(context) registry.42069.no/$(context))
|
2022-05-05 22:07:07 +02:00
|
|
|
push_reg:
|
2022-06-19 16:05:31 +02:00
|
|
|
$(foreach context,$(reg_contexts),docker push registry.42069.no/$(context);)
|
|
|
|
|
2022-05-05 22:07:07 +02:00
|
|
|
|
|
|
|
registry: build_reg push_reg
|
|
|
|
all: hub registry
|
2021-09-14 14:59:53 +02:00
|
|
|
|