From 1dd8c67e27e1c489042e8c790af528bbb7710350 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 15 Sep 2016 22:53:11 +0800 Subject: [PATCH] fix missing version in no tag condition. Signed-off-by: Bo-Yi Wu --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 393ab21..c1ccc95 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ BUILD_IMAGE := "gorush-build" # docker hub project name. PRODUCTION_IMAGE := "gorush" DEPLOY_ACCOUNT := "appleboy" -VERSION := $(shell git describe --tags) +VERSION := $(shell git describe --tags | git rev-parse --short HEAD) TARGETS_NOVENDOR := $(shell glide novendor) export PROJECT_PATH = /go/src/github.com/appleboy/gorush