We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c0f98a commit a43cb99Copy full SHA for a43cb99
1 file changed
Makefile
@@ -17,13 +17,21 @@
17
18
.PHONY: all ubuntu1404 ubuntu1604 latest
19
20
+# Build docker tag based on provided info
21
+#
22
+# $1: tag_name
23
+# $2: directory_name
24
+define build_tag
25
+ docker build -t khos2ow/cloudstack-deb-builder:$(1) $(2)
26
+endef
27
+
28
all: ubuntu1404 ubuntu1604 latest
29
30
ubuntu1404:
- docker build -t khos2ow/cloudstack-deb-builder:ubuntu1404 ubuntu1404/
31
+ $(call build_tag,ubuntu1404,ubuntu1404)
32
33
ubuntu1604:
- docker build -t khos2ow/cloudstack-deb-builder:ubuntu1604 ubuntu1604/
34
+ $(call build_tag,ubuntu1604,ubuntu1604)
35
36
latest:
- docker build -t khos2ow/cloudstack-deb-builder:latest ubuntu1604/
37
+ $(call build_tag,latest,ubuntu1604)
0 commit comments