fix get git version tag.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-09-17 15:11:18 +08:00
parent 4963f64508
commit 2fba9b3d74
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ BUILD_IMAGE := "gorush-build"
# docker hub project name. # docker hub project name.
PRODUCTION_IMAGE := "gorush" PRODUCTION_IMAGE := "gorush"
DEPLOY_ACCOUNT := "appleboy" DEPLOY_ACCOUNT := "appleboy"
VERSION := $(shell git describe --tags | git rev-parse --short HEAD) VERSION := $(shell git describe --tags || git rev-parse --short HEAD)
TARGETS_NOVENDOR := $(shell glide novendor) TARGETS_NOVENDOR := $(shell glide novendor)
export PROJECT_PATH = /go/src/github.com/appleboy/gorush export PROJECT_PATH = /go/src/github.com/appleboy/gorush