Skip to content

Commit

Permalink
chore: change TAG to ETAG to avoid stepping on toes (#800)
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Ball <lball@redhat.com>

Co-authored-by: Lance Ball <lball@redhat.com>
  • Loading branch information
knative-prow-robot and lance committed Jan 28, 2022
1 parent 81f9a48 commit 2acc4b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down
2 changes: 1 addition & 1 deletion hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2acc4b7

Please sign in to comment.