From ec539b7a77e854d44e8f33220062a0b0ae0fb789 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Fri, 23 Jun 2023 02:52:03 -0500 Subject: [PATCH] Gitea version in Makefile (#25456) (#25457) Backport-ish of #25456 Signed-off-by: jolheiser --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3e2114ff8..d6153039e 100644 --- a/Makefile +++ b/Makefile @@ -85,12 +85,12 @@ GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD) # backwards compatible to build with Drone ifneq ($(DRONE_TAG),) GITHUB_REF_TYPE := tag - GITHUB_REF_NAME := DRONE_TAG + GITHUB_REF_NAME := $(DRONE_TAG) endif ifneq ($(GITHUB_REF_TYPE),branch) VERSION ?= $(subst v,,$(GITHUB_REF_NAME)) - GITEA_VERSION ?= $(GITHUB_REF_NAME) + GITEA_VERSION ?= $(VERSION) else ifneq ($(GITHUB_REF_NAME),) VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))