chore: allow the TAG_NAME and SHA Makefile variable to be overridden (#29123)

This commit is contained in:
Matthias Fechner 2026-04-15 10:55:05 +02:00 • committed by GitHub
parent 0f65fd960f
commit 0b198ff0da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
# build vars
TAG_NAME := $(shell test -d .git && git describe --abbrev=0 --tags)
SHA := $(shell test -d .git && git rev-parse --short HEAD)
TAG_NAME ?= $(shell test -d .git && git describe --abbrev=0 --tags)
SHA ?= $(shell test -d .git && git rev-parse --short HEAD)
COMMIT := $(SHA)
# hide commit for releases
ifeq ($(RELEASE),1)