Skip to content

Commit 0192eb9

Browse files
author
Jeff Yanta
committed
Fix image build make targets to use git tags
1 parent 032fafb commit 0192eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GO_OS := $(shell go env GOOS)
22
GO_ARCH := $(shell go env GOARCH)
33

4-
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
4+
GIT_BRANCH := $(shell git symbolic-ref -q --short HEAD || git describe --tags --exact-match)
55

66
.PHONY: all
77
all: generate test

0 commit comments

Comments
 (0)