Skip to content

Commit

Permalink
build: fix VERSION read
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Jan 13, 2025
1 parent 8c64326 commit 0cffbf6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
PLATFORM=$(shell uname -s | tr '[:upper:]' '[:lower:]')

ifndef VERSION
ifndef RELEASE
# If we're not publishing a release, set the dev commit hash
ifndef DEV_TAG_SHA
COMMIT_HASH :=$(shell git rev-parse --short=7 HEAD)
else
COMMIT_HASH :=$(shell echo ${DEV_TAG_SHA} | cut -c 1-7)
endif
VERSION := dev-${COMMIT_HASH}
else
VERSION := $(shell git describe --tags --abbrev=0)
endif
VERSION := $(shell git describe --tags --abbrev=0)
endif

.PHONY: run build build-server docker release check test
Expand Down

0 comments on commit 0cffbf6

Please sign in to comment.