🐳 Drone CI auto update all my docker images
This commit is contained in:
parent
8c3769180d
commit
031a5175b9
26
.drone.yml
Normal file
26
.drone.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build and push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build and push
|
||||||
|
image: docker:dind
|
||||||
|
volumes:
|
||||||
|
- name: docker.sock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
REG:
|
||||||
|
from_secret: registry
|
||||||
|
commands:
|
||||||
|
- mkdir ~/.docker
|
||||||
|
- echo "$REG" > ~/.docker/config.json
|
||||||
|
- apk add make
|
||||||
|
- make all
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- cron
|
||||||
|
cron:
|
||||||
|
- monthly
|
||||||
|
|
11
Makefile
11
Makefile
@ -1,11 +1,10 @@
|
|||||||
.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 = siverten/magma siverten/rlcraft
|
||||||
mc_contexts = $(modded_mc) siverten/papermc siverten/waterfall
|
#mc_contexts = $(modded_mc) siverten/papermc siverten/waterfall
|
||||||
game_contexts = $(mc_contexts) siverten/tshock
|
#game_contexts = $(mc_contexts) siverten/tshock
|
||||||
|
|
||||||
contexts = siverten/bind9 siverten/oxen siverten/tor\
|
contexts = siverten/bind9 siverten/oxen siverten/tor # $(game_contexts)
|
||||||
$(game_contexts)
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(foreach context,$(contexts),docker build --pull $(context);)
|
$(foreach context,$(contexts),docker build --pull $(context);)
|
||||||
@ -14,7 +13,7 @@ push:
|
|||||||
hub: build push
|
hub: build push
|
||||||
|
|
||||||
|
|
||||||
reg_contexts = xmr-stak
|
reg_contexts = #xmr-stak
|
||||||
|
|
||||||
build_reg:
|
build_reg:
|
||||||
$(foreach context,$(reg_contexts),docker build --pull $(context);docker tag $(context) registry.42069.no/$(context))
|
$(foreach context,$(reg_contexts),docker build --pull $(context);docker tag $(context) registry.42069.no/$(context))
|
||||||
|
Loading…
Reference in New Issue
Block a user