File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ # make BUILD_VERSION=1.2.3 [compile-with-docker] will set netplugin -version output
2
+ # make BUILD_VERSION=1.2.3 tar will set the tar filename
3
+ # default naming will otherwise be value of version/CURRENT_VERSION
4
+
5
+
1
6
.PHONY : all all-CI build clean default unit-test release tar checks go-version gofmt-src \
2
7
golint-src govet-src run-build compile-with-docker
3
8
@@ -15,8 +20,7 @@ NAME := netplugin
15
20
VERSION_FILE := $(NAME ) -version
16
21
VERSION := ` cat $( VERSION_FILE) `
17
22
TAR_EXT := tar.bz2
18
- # BUILD_VERSION=1.2 make --> 1.2-1097d2a7, otherwise devbuild-1097d2a7
19
- export NETPLUGIN_CONTAINER_TAG := $(or $(BUILD_VERSION ) ,devbuild) -$(shell ./scripts/getGitCommit.sh)
23
+ NETPLUGIN_CONTAINER_TAG := $(shell ./scripts/getGitCommit.sh)
20
24
TAR_FILENAME := $(NAME ) -$(VERSION ) .$(TAR_EXT )
21
25
TAR_LOC := .
22
26
TAR_FILE := $(TAR_LOC ) /$(TAR_FILENAME )
@@ -104,7 +108,7 @@ compile-with-docker:
104
108
docker build \
105
109
--build-arg NIGHTLY_RELEASE=${NIGHTLY_RELEASE} \
106
110
--build-arg BUILD_VERSION=${BUILD_VERSION} \
107
- -t netplugin-build:$$ {BUILD_VERSION:-devbuild}- $$( ./scripts/getGitCommit.sh ) .
111
+ -t netplugin-build:$( NETPLUGIN_CONTAINER_TAG ) .
108
112
109
113
build-docker-image : start
110
114
vagrant ssh netplugin-node1 -c ' bash -lc "source /etc/profile.d/envvar.sh && cd /opt/gopath/src/github.com/contiv/netplugin && make host-build-docker-image"'
You can’t perform that action at this time.
0 commit comments