Skip to content

Commit

Permalink
Support for lightweight tags
Browse files Browse the repository at this point in the history
We may have non-annotated tags which is basically a tag without
dedicated message.
Let's support them as well to avoid confusion in CI.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
  • Loading branch information
giggsoff authored and eriknordmark committed Dec 2, 2022
1 parent 290576c commit ec306b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -75,9 +75,9 @@ endif

REPO_BRANCH=$(shell git rev-parse --abbrev-ref HEAD | tr / _)
REPO_SHA=$(shell git describe --match '$$^' --abbrev=8 --always --dirty)
REPO_TAG=$(shell git describe --always | grep -E '[0-9]*\.[0-9]*\.[0-9]*' || echo snapshot)
REPO_TAG=$(shell git describe --always --tags | grep -E '[0-9]*\.[0-9]*\.[0-9]*' || echo snapshot)
REPO_DIRTY_TAG=$(if $(findstring -dirty,$(REPO_SHA)),-$(shell date -u +"%Y-%m-%d.%H.%M"))
EVE_TREE_TAG = $(shell git describe --abbrev=8 --always --dirty)
EVE_TREE_TAG = $(shell git describe --abbrev=8 --always --dirty --tags)

ifeq ($(DEV),y)
DEV_TAG:=-dev

0 comments on commit ec306b6

Please sign in to comment.