Files
cozystack/scripts/common-envs.mk
Marian Koreniuk f76bc8d823 Merge pull request #483 from aenix-io/main
Sync 0.18 to proxmox integration
2024-11-22 20:05:40 +01:00

18 lines
577 B
Makefile

REGISTRY := ghcr.io/aenix-io/cozystack
PUSH := 1
LOAD := 0
VERSION = $(patsubst v%,%,$(shell git describe --tags --abbrev=0))
TAG = $(shell git describe --tags --exact-match 2>/dev/null || echo latest)
# Returns 'latest' if the git tag is not assigned, otherwise returns the provided value
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