dockerfiles/Makefile
Sivert 2fb112760c
All checks were successful
continuous-integration/drone/push Build is passing
Add ansible Dockerfile and enable building of game images
2023-02-06 13:45:39 +01:00

27 lines
717 B
Makefile

.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
contexts = ansible bind9 oxen tor $(game_contexts)
build:
$(foreach context,$(contexts),docker build --pull siverten/$(context) -t siverten/$(context);)
push:
$(foreach context,$(contexts),docker push siverten/$(context);)
hub: build push
reg_contexts = #xmr-stak
build_reg:
$(foreach context,$(reg_contexts),docker build --pull $(context) -t $(context);docker tag $(context) registry.42069.no/$(context))
push_reg:
$(foreach context,$(reg_contexts),docker push registry.42069.no/$(context);)
registry: build_reg push_reg
all: hub registry