mirror of
1
Fork 0

Gitea version in Makefile (#25456) (#25457)

Backport-ish of #25456

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2023-06-23 02:52:03 -05:00 committed by GitHub
parent 6fbdacb524
commit ec539b7a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -85,12 +85,12 @@ GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
# backwards compatible to build with Drone # backwards compatible to build with Drone
ifneq ($(DRONE_TAG),) ifneq ($(DRONE_TAG),)
GITHUB_REF_TYPE := tag GITHUB_REF_TYPE := tag
GITHUB_REF_NAME := DRONE_TAG GITHUB_REF_NAME := $(DRONE_TAG)
endif endif
ifneq ($(GITHUB_REF_TYPE),branch) ifneq ($(GITHUB_REF_TYPE),branch)
VERSION ?= $(subst v,,$(GITHUB_REF_NAME)) VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
GITEA_VERSION ?= $(GITHUB_REF_NAME) GITEA_VERSION ?= $(VERSION)
else else
ifneq ($(GITHUB_REF_NAME),) ifneq ($(GITHUB_REF_NAME),)
VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME)) VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))