Skip to content

Commit

Permalink
Merge pull request #29 from carolynvs/fix-release
Browse files Browse the repository at this point in the history
Fix tag matching
  • Loading branch information
carolynvs committed Jul 25, 2021
2 parents 998141d + 1284ee4 commit 70b1662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ GO = GO111MODULE=on go
PORTER_HOME ?= $(HOME)/.porter

COMMIT ?= $(shell git rev-parse --short HEAD)
VERSION ?= $(shell git describe --tags 2> /dev/null || echo v0)
PERMALINK ?= $(shell git describe --tags --exact-match &> /dev/null && echo latest || echo canary)
VERSION ?= $(shell git describe --tags --match=v* 2> /dev/null || echo v0)
PERMALINK ?= $(shell git describe --tags --match=v* --exact-match &> /dev/null && echo latest || echo canary)

LDFLAGS = -w -X $(PKG)/pkg.Version=$(VERSION) -X $(PKG)/pkg.Commit=$(COMMIT)
XBUILD = CGO_ENABLED=0 $(GO) build -a -tags netgo -ldflags '$(LDFLAGS)'
Expand Down

0 comments on commit 70b1662

Please sign in to comment.