From 4e61d1ca09afd3cc2ed13c7f0632f8f3f9e54ff0 Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Mon, 25 Jun 2018 13:43:36 +0200 Subject: [PATCH] Fix drone build number/version Signed-off-by: Jonas Franz --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e4d5b86..074ca65 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ IMPORT := git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator GO ?= go -BUILD=$(or ${DRONE_BUILD_NUMBER},${DRONE_BUILD_NUMBER},0) ifneq ($(DRONE_TAG),) VERSION ?= $(subst v,,$(DRONE_TAG)) @@ -13,7 +12,7 @@ else endif endif -LDFLAGS := -X main.Version=$(VERSION) -X main.build=$(BUILD) +LDFLAGS := -X main.version=$(VERSION) -X main.build=$(DRONE_BUILD_NUMBER) .PHONY: all all: