Poggers Makefile?

This commit is contained in:
Sivert V. Sæther 2022-05-05 22:07:07 +02:00
parent 9dbc6d5139
commit 87cc59271e
2 changed files with 17 additions and 13 deletions

View File

@ -4,14 +4,22 @@ game_contexts = $(mc_contexts) siverten/tshock
contexts = siverten/bind9 siverten/oxen siverten/tor\ contexts = siverten/bind9 siverten/oxen siverten/tor\
$(game_contexts) $(game_contexts)
updates = $(contexts)
siverten/bind9: .PHONY: build push hub build_reg push_reg registry all
docker build siverten/bind9
siverten/oxen: build:
docker build siverten/oxen $(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
build : $(contexts)
./sh/build.sh $(contexts)
push : $(contexts)
./sh/push.sh $(contexts)

View File

@ -1,4 +0,0 @@
#!/bin/sh
git pull
make build 'contexts=$(updates)'
make push 'contexts=$(updates)'