diff --git a/scripts/common-envs.mk b/scripts/common-envs.mk index 6738677d..668266c5 100644 --- a/scripts/common-envs.mk +++ b/scripts/common-envs.mk @@ -8,3 +8,9 @@ TAG = $(shell git describe --tags --exact-match 2>/dev/null || echo latest) define settag $(if $(filter $(TAG),latest),latest,$(1)) endef + +ifeq ($(VERSION),) + $(shell git remote add upstream https://github.com/aenix-io/cozystack.git || true) + $(shell git fetch upstream --tags) + VERSION = $(patsubst v%,%,$(shell git describe --tags --abbrev=0)) +endif