diff options
author | tcely <tcely@users.noreply.github.com> | 2019-06-22 10:02:29 -0400 |
---|---|---|
committer | Richard Mortier <mort@cantab.net> | 2019-07-12 09:43:21 +0100 |
commit | dd2960b32ac893458695130ab7250c6d0d2be897 (patch) | |
tree | 524b0bf3f850688468e81914825e7e21ec9333cb | |
parent | 4f296e2a5e76c859cc28746e617f5359a131a0e0 (diff) | |
download | docker-abuild-dd2960b32ac893458695130ab7250c6d0d2be897.tar.bz2 docker-abuild-dd2960b32ac893458695130ab7250c6d0d2be897.tar.xz |
Makefile: .drone.yml target
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -18,14 +18,17 @@ VOLS = bin etc lib sbin usr var RELEASES ?= v2.6 v2.7 v3.1 v3.2 v3.3 v3.4 v3.5 v3.6 v3.7 v3.8 v3.9 v3.10 edge ARCH := $(shell uname -m) -.PHONY: all -all: images dabuild - dabuild: dabuild.in sed 's!%%ABUILD_VOLUMES%%!$(VOLS)!;s!%%ABUILD_IMAGE%%!$(IMG)!' \ dabuild.in >| dabuild chmod +x dabuild +.drone.yml: .drone.jsonnet + docker run --rm -v '$(shell pwd):/pwd' -w /pwd drone/cli jsonnet --format --stream --source '$<' --target '$@.tmp' && test -s '$@.tmp' && install '$@.tmp' '$@' ; _rc=$$?; $(RM) '$@.tmp' ; exit $$_rc + +.PHONY: all +all: images dabuild + .PHONY: images images: $(patsubst %, build-%, $(RELEASES)) |