From 5698f9bccd542acf346cb3667b20c38b7fd68abe Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 1 Dec 2020 19:42:03 -0800 Subject: [PATCH] Fix tag version propogation --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 51aa15b..b6b0246 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ OUTPUT ?= dockron DOCKER_TAG ?= $(OUTPUT)-dev-$(USER) GIT_TAG_NAME := $(shell git tag -l --contains HEAD) GIT_SHA := $(shell git rev-parse HEAD) -VERSION := $(if $(GIT_TAG_NAME),$(GIT_TAG_NAME),$(GIT_SHA)) +VERSION ?= $(if $(GIT_TAG_NAME),$(GIT_TAG_NAME),$(GIT_SHA)) GOFILES = *.go go.mod go.sum