Fetch all git data for embedding correct version in docker image (#25361) (#25373)

Backport #25361 by @techknowlogick

Fix #25350

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
Giteabot
2023-06-20 03:07:51 +00:00
committed by GitHub
co-authored by techknowlogick
parent e9105ac281
commit 10fcb55507
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -79,6 +79,9 @@ endif
STORED_VERSION_FILE := VERSION
HUGO_VERSION ?= 0.111.3
GITHUB_REF_TYPE ?= branch
GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
ifneq ($(GITHUB_REF_TYPE),branch)
VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
GITEA_VERSION ?= $(GITHUB_REF_NAME)