Browse Source

Fix tag version propogation

master
IamTheFij 1 year ago
parent
commit
5698f9bccd
  1. 2
      Makefile

2
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

Loading…
Cancel
Save