🔧 Add release Makefile rule

This commit is contained in:
M. Mert Yildiran 2023-11-16 21:27:21 +03:00
parent e2ef9eff05
commit 788bcd4846
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -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