Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #51: Added target in Makefile to update helm version #54

Merged
merged 1 commit into from Mar 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -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
3 changes: 1 addition & 2 deletions 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.
Expand Down