Skip to content

Commit

Permalink
Bump: ChartVersion 0.11.8. AppVersion 0.11.8
Browse files Browse the repository at this point in the history
  • Loading branch information
David Tuite committed Jul 16, 2020
1 parent 8c218e1 commit c74795f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
2 changes: 0 additions & 2 deletions bin/bump_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ NEW_VERSION=$(./bin/bump.sh $CURRENT_VERSION $1)
echo "Bumping app version in $1 mode from $CURRENT_VERSION to $NEW_VERSION"
yq w -i helm_chart/Chart.yaml appVersion $NEW_VERSION
yq w -i helm_chart/values.yaml image.tag $NEW_VERSION
# Chart version should always be bumped when the app version is bumped.
./bin/bump_chart.sh $1
19 changes: 19 additions & 0 deletions bin/bump_app_and_chart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
set -e

# brew install yq

if [ -z "$1" ] ; then
echo "Bump mode required: major|minor|patch"
exit 1
fi

CURRENT_VERSION=$(yq r helm_chart/Chart.yaml appVersion)
NEW_VERSION=$(./bin/bump.sh $CURRENT_VERSION $1)

echo "Bumping app version in $1 mode from $CURRENT_VERSION to $NEW_VERSION"
yq w -i helm_chart/Chart.yaml appVersion $NEW_VERSION
yq w -i helm_chart/values.yaml image.tag $NEW_VERSION

echo "Bumping chart version in $1 mode from $CURRENT_VERSION to $NEW_VERSION"
yq w -i helm_chart/Chart.yaml version $NEW_VERSION
3 changes: 1 addition & 2 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ fi

BUMP_MODE="$1"

./bin/bump_chart.sh $BUMP_MODE
./bin/bump_app.sh $BUMP_MODE
./bin/bump_app_and_chart.sh $BUMP_MODE
BUMPED_CHART_VERSION=$(yq r helm_chart/Chart.yaml version)
BUMPED_APP_VERSION=$(yq r helm_chart/Chart.yaml appVersion)

Expand Down
4 changes: 2 additions & 2 deletions helm_chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ description: Get Helm notifications in your team chat
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.11.7
version: 0.11.8
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.11.6
appVersion: 0.11.8
sources:
- https://github.com/RoadieHQ/kubewise
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion helm_chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1
image:
repository: us.gcr.io/larder-prod/kubewise
tag: 0.11.6
tag: 0.11.8
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
Expand Down

0 comments on commit c74795f

Please sign in to comment.