chore: change TAG to ETAG to avoid stepping on toes (#799)

Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Lance Ball 2022-01-28 09:23:47 -05:00 committed by GitHub
parent 210cd9a199
commit 2009073591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ BIN_WINDOWS ?= $(BIN)_windows_amd64.exe
DATE := $(shell date -u +"%Y%m%dT%H%M%SZ")
HASH := $(shell git rev-parse --short HEAD 2>/dev/null)
VTAG := $(shell git tag --points-at HEAD)
VTAG := $(shell [ -z $(VTAG) ] && echo $(TAG) || echo $(VTAG))
VTAG := $(shell [ -z $(VTAG) ] && echo $(ETAG) || echo $(VTAG))
VERS ?= $(shell [ -z $(VTAG) ] && echo 'tip' || echo $(VTAG) )
LDFLAGS := "-X main.date=$(DATE) -X main.vers=$(VERS) -X main.hash=$(HASH)"

View File

@ -23,7 +23,7 @@ source $(dirname $0)/../vendor/knative.dev/hack/release.sh
function build_release() {
echo "🚧 🐧 Building cross platform binaries: Linux 🐧 (amd64), MacOS 🍏, and Windows 🎠"
TAG=${TAG} make cross-platform
ETAG=${TAG} make cross-platform
ARTIFACTS_TO_PUBLISH="func_darwin_amd64 func_linux_amd64 func_windows_amd64.exe"
sha256sum ${ARTIFACTS_TO_PUBLISH} > checksums.txt