mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
11 lines
353 B
Makefile
11 lines
353 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
|