From 0f4c50958244a0d4496c101f095d0596a5c46de5 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Thu, 13 Mar 2025 15:54:14 +0100 Subject: [PATCH] ci(make): get version for chart Signed-off-by: rjshrjndrn --- scripts/helmcharts/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/Makefile b/scripts/helmcharts/Makefile index c90e9c277..891768c37 100644 --- a/scripts/helmcharts/Makefile +++ b/scripts/helmcharts/Makefile @@ -2,11 +2,12 @@ help: ## Prints help for targets with comments @cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' domain ?= $(shell echo $${DOMAIN:-}) -version ?= $(shell echo $${OR_VERSION:-}) override_file ?= "/home/ubuntu/vars_override.yaml" shell := /bin/bash -eo pipefail +version ?= $(shell yq e '.appVersion' openreplay/Chart.yaml || "") clean: ## Clean up the installation + sudo rm /var/lib/openreplay/vars.yaml kubectl delete cm openreplay-version -n app || true helm uninstall openreplay -n app || true helm uninstall databases -n db || true