Skip to content

Commit a008296

Browse files
committed
bump helm minor-version from 0.2.0 to 0.2.1
1 parent 9ed975c commit a008296

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.github/workflows/release-chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ jobs:
2828
uses: helm/chart-releaser-action@v1.2.1
2929
with:
3030
charts_dir: helm
31+
config: cr.yaml
3132
env:
3233
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
pwd = $(shell pwd)
33
version = $(shell poetry version -s)
44
short_version = $(shell poetry version -s | cut -d'+' -d'-' -f1)
5+
helm_version = $(shell yq r helm/pipecheck/Chart.yaml 'version')
6+
helm_short_version = $(shell yq r helm/pipecheck/Chart.yaml 'version' | cut -d'+' -d'-' -f1)
57

68
init:
79
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
810

911
check-bump:
12+
which yq || { echo "yq not installed!"; exit 1; }
1013
which gh || { echo "gh (github cli) not installed!"; exit 1; }
1114
[ "$(shell git rev-parse --abbrev-ref HEAD)" == "main" ] || { echo "bumping only possible on main branch"; exit 1; }
1215

@@ -31,6 +34,21 @@ bump-patch: check-bump
3134
echo "__version__ = \"$(new_version)\"" > pipecheck/__init__.py
3235
git commit -a -m "bump patch-version from $(version) to $(new_version)"
3336

37+
helm-bump-major: check-bump
38+
$(eval helm_new_version = $(shell IFS=. read -r a b c<<<"$(helm_short_version)";echo "$$((a+1)).0.0"))
39+
sed -i 's/version: .*/version: $(helm_new_version)/' helm/pipecheck/Chart.yaml
40+
git commit -a -m "bump helm minor-version from $(helm_version) to $(helm_new_version)"
41+
42+
helm-bump: check-bump
43+
$(eval helm_new_version = $(shell IFS=. read -r a b c<<<"$(helm_short_version)";echo "$$a.$$((b+1)).0"))
44+
sed -i 's/version: .*/version: $(helm_new_version)/' helm/pipecheck/Chart.yaml
45+
git commit -a -m "bump helm minor-version from $(helm_version) to $(helm_new_version)"
46+
47+
helm-bump-patch: check-bump
48+
$(eval helm_new_version = $(shell IFS=. read -r a b c<<<"$(helm_short_version)";echo "$$a.$$b.$$((c+1))"))
49+
sed -i 's/version: .*/version: $(helm_new_version)/' helm/pipecheck/Chart.yaml
50+
git commit -a -m "bump helm minor-version from $(helm_version) to $(helm_new_version)"
51+
3452
release:
3553
git push
3654
poetry version -s | xargs -i gh release create v{}

cr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
release-name-template: "helm-{{ .Version }}"

helm/pipecheck/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.0
18+
version: 0.2.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

0 commit comments

Comments
 (0)