From 788bcd4846fe53d030f7497d34ddeaf68ba89128 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Thu, 16 Nov 2023 21:27:21 +0300 Subject: [PATCH] :wrench: Add `release` Makefile rule --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 832523ba4..ce10cc4cf 100644 --- a/Makefile +++ b/Makefile @@ -152,3 +152,14 @@ proxy: port-forward-worker: kubectl port-forward $$(kubectl get pods | awk '$$1 ~ /^$(LOGS_POD_PREFIX)/' | awk 'END {print $$1}') $(LOGS_FOLLOW) 8897:8897 + +release: + @cd ../worker && git tag -d v$(VERSION); git tag v$(VERSION) && git push origin --tags + @cd ../hub && git tag -d v$(VERSION); git tag v$(VERSION) && git push origin --tags + @cd ../front && git tag -d v$(VERSION); git tag v$(VERSION) && git push origin --tags + @cd ../kubeshark && sed -i 's/^version:.*/version: "$(VERSION)"/' helm-chart/Chart.yaml + @git add -A . && git commit -m ":bookmark: Bump the Helm chart version to `$(VERSION)`" && git push + @git tag v$(VERSION) && git push origin --tags + @cd helm-chart && cp -r . ../../kubeshark.github.io/charts/chart + @cd ../../kubeshark.github.io/ && git add -A . && git commit -m ":sparkles: Update the Helm chart" && git push + @cd ../kubeshark