Fix tag version propogation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2020-12-01 19:42:03 -08:00
parent 2a03ef21ad
commit 5698f9bccd

View File

@ -2,7 +2,7 @@ OUTPUT ?= dockron
DOCKER_TAG ?= $(OUTPUT)-dev-$(USER) DOCKER_TAG ?= $(OUTPUT)-dev-$(USER)
GIT_TAG_NAME := $(shell git tag -l --contains HEAD) GIT_TAG_NAME := $(shell git tag -l --contains HEAD)
GIT_SHA := $(shell git rev-parse 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 GOFILES = *.go go.mod go.sum