From 7e6eb663c6efa8573569290a5049555c5af19d42 Mon Sep 17 00:00:00 2001 From: mugdha-adhav Date: Wed, 13 Mar 2019 12:39:12 +0530 Subject: [PATCH] Added target in Makefile to upate helm version --- Makefile | 10 ++++++++-- helm/botkube/Chart.yaml | 3 +-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 61f9e5139..56477e486 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,11 @@ IMAGE_REPO=infracloud/botkube TAG=$(shell cut -d'=' -f2- .release) .DEFAULT_GOAL := build -.PHONY: release git-tag check-git-status build pre-build tag-image publish +.PHONY: release git-tag check-git-status build pre-build tag-image publish helm-chart #Docker Tasks #Make a release -release: check-git-status build tag-image publish git-tag +release: check-git-status build tag-image publish helm-chart git-tag @echo "Successfully released version $(TAG)" #Create a git tag @@ -49,3 +49,9 @@ publish: @docker login @docker push $(IMAGE_REPO):$(TAG) @docker push $(IMAGE_REPO):latest + +#Update Helm chart +helm-chart: + @echo "Updating helm charts" + @sed -i 's/version.*/version: $(TAG)/' helm/botkube/Chart.yaml + @sed -i 's/tag.*/tag: $(TAG)/' helm/botkube/values.yaml diff --git a/helm/botkube/Chart.yaml b/helm/botkube/Chart.yaml index 3334cc967..6752d2c40 100644 --- a/helm/botkube/Chart.yaml +++ b/helm/botkube/Chart.yaml @@ -1,8 +1,7 @@ apiVersion: v1 name: botkube home: https://www.botkube.io -appVersion: "1.0" -version: 0.1.0 +version: 1.0.0 icon: https://www.botkube.io/images/botkube.ico description: Controller for the BotKube Slack app which helps you monitor your Kubernetes cluster, debug deployments and run specific checks on resources in the cluster.