Add ansible Dockerfile and enable building of game images
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sivert V. Sæther 2023-02-06 13:45:39 +01:00
parent cdf7ef26f6
commit 2fb112760c
2 changed files with 13 additions and 6 deletions

View File

@ -1,15 +1,15 @@
.PHONY: build push hub build_reg push_reg registry all .PHONY: build push hub build_reg push_reg registry all
#modded_mc = siverten/magma siverten/rlcraft modded_mc = magma rlcraft
#mc_contexts = $(modded_mc) siverten/papermc siverten/waterfall mc_contexts = $(modded_mc) papermc waterfall
#game_contexts = $(mc_contexts) siverten/tshock game_contexts = $(mc_contexts) tshock
contexts = siverten/bind9 siverten/oxen siverten/tor # $(game_contexts) contexts = ansible bind9 oxen tor $(game_contexts)
build: build:
$(foreach context,$(contexts),docker build --pull $(context) -t $(context);) $(foreach context,$(contexts),docker build --pull siverten/$(context) -t siverten/$(context);)
push: push:
$(foreach context,$(contexts),docker push $(context);) $(foreach context,$(contexts),docker push siverten/$(context);)
hub: build push hub: build push

View File

@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk update && apk upgrade
RUN apk add ansible
CMD ansible