aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 88bcc50..b8ce802 100644
--- a/Makefile
+++ b/Makefile
@@ -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))