File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 11VERSION ?= 25.8.0
2- HELM_VERSION ?= 25.08.0
32
43CHANNELS ?= alpha
54BUNDLE_CHANNELS := --channels=$(CHANNELS )
@@ -61,7 +60,7 @@ help: ## Display this help.
6160
6261.PHONY : sync-chart
6362sync-chart : # # Sync helm chart.
64- @./hack/sync-chart.sh $(HELM_VERSION )
63+ @./hack/sync-chart.sh $(VERSION )
6564
6665# #@ Build
6766
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- normalize_version () {
6- local version=" $1 "
7- IFS=' .' read -r major minor patch <<< " $version"
8-
9- # Remove leading zeroes safely by using arithmetic expansion
10- major=$(( 10 #$major ))
11- minor=$(( 10 #$minor ))
12- patch=$(( 10 #$patch ))
13-
14- echo " $major .$minor .$patch "
15- }
16-
17- INPUT_VERSION=$1
18- VERSION=$( normalize_version " $INPUT_VERSION " )
19-
20- echo " 📦 Input version: '$INPUT_VERSION '"
21- echo " 📦 Normalized to semver-compliant version: '$VERSION '"
5+ VERSION=$1
226
237echo " 📦 Bumping bundle to version '$VERSION '"
248
259echo " 📦 Updating Makefile"
2610sed -i " s/VERSION ?= .*/VERSION ?= $VERSION /g" Makefile
27- sed -i " s/HELM_VERSION ?= .*/HELM_VERSION ?= $INPUT_VERSION /g" Makefile
2811
2912echo " 📦 Generating bundle"
3013make bundle
You can’t perform that action at this time.
0 commit comments