From 6574d109022ca35869d201ed8b20e96558e0aafe Mon Sep 17 00:00:00 2001 From: Paul Abel <128620221+pdabelf5@users.noreply.github.com> Date: Tue, 9 Jan 2024 12:34:51 +0000 Subject: [PATCH] ensure latest tag is used for GIT_TAG (#4878) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4b23c5ecf0..986d26c1d9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # variables that should not be overridden by the user -GIT_TAG = $(shell git describe --tags --abbrev=0 || echo untagged) +GIT_TAG = $(shell git tag --sort=-version:refname | head -n1 || echo untagged) VERSION = $(GIT_TAG)-SNAPSHOT PLUS_ARGS = --secret id=nginx-repo.crt,src=nginx-repo.crt --secret id=nginx-repo.key,src=nginx-repo.key