mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
[platform] Use devel versions notation for HelmCharts
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ include ../../scripts/common-envs.mk
|
||||
repo:
|
||||
rm -rf "$(OUT)"
|
||||
mkdir -p "$(OUT)"
|
||||
helm package -d "$(OUT)" $$(find . -mindepth 2 -maxdepth 2 -name Chart.yaml | awk 'sub("/Chart.yaml", "")') --version $(VERSION)
|
||||
helm package -d "$(OUT)" $$(find . -mindepth 2 -maxdepth 2 -name Chart.yaml | awk 'sub("/Chart.yaml", "")') --version $(COZYSTACK_VERSION)
|
||||
cd "$(OUT)" && helm repo index .
|
||||
|
||||
fix-chartnames:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
REGISTRY := ghcr.io/cozystack/cozystack
|
||||
PUSH := 1
|
||||
LOAD := 0
|
||||
VERSION = $(patsubst v%,%,$(shell git describe --tags --abbrev=0))
|
||||
COZYSTACK_VERSION = $(patsubst v%,%,$(shell git describe --tags))
|
||||
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
|
||||
@@ -9,8 +9,8 @@ define settag
|
||||
$(if $(filter $(TAG),latest),latest,$(1))
|
||||
endef
|
||||
|
||||
ifeq ($(VERSION),)
|
||||
ifeq ($(COZYSTACK_VERSION),)
|
||||
$(shell git remote add upstream https://github.com/cozystack/cozystack.git || true)
|
||||
$(shell git fetch upstream --tags)
|
||||
VERSION = $(patsubst v%,%,$(shell git describe --tags --abbrev=0))
|
||||
COZYSTACK_VERSION = $(patsubst v%,%,$(shell git describe --tags))
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user