Skip to content

Commit

Permalink
change version in release.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
  • Loading branch information
chanwit committed Jul 6, 2023
1 parent c304020 commit e2bca4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
sourceRef:
kind: HelmRepository
name: tf-controller
version: '>=0.15.0'
version: '>=0.15.1'
interval: 1h0s
releaseName: tf-controller
targetNamespace: flux-system
Expand All @@ -46,9 +46,9 @@ spec:
caCertValidityDuration: 24h
certRotationCheckFrequency: 30m
image:
tag: v0.15.0
tag: v0.15.1
runner:
image:
tag: v0.15.0
tag: v0.15.1
grpc:
maxMessageSize: 30
7 changes: 7 additions & 0 deletions tools/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

VERSION=$1

yq e -i ".version=\"${VERSION#v}\"" charts/tf-controller/Chart.yaml
yq e -i ".appVersion=\"$VERSION\"" charts/tf-controller/Chart.yaml
yq e -i ".image.tag=\"$VERSION\"" charts/tf-controller/values.yaml
yq e -i ".runner.image.tag=\"$VERSION\"" charts/tf-controller/values.yaml
yq e -i ".images[0].newTag=\"$VERSION\"" config/manager/kustomization.yaml
yq e -i ".images[0].newTag=\"$VERSION\"" config/bbp/kustomization.yaml

# bump version in docs/release.yaml

yq e -i "(select(di == 1).spec.chart.spec.version) = \">=${VERSION#v}\"" docs/release.yaml
yq e -i "(select(di == 1).spec.values.image.tag) = \"$VERSION\"" docs/release.yaml
yq e -i "(select(di == 1).spec.values.runner.image.tag) = \"$VERSION\"" docs/release.yaml

0 comments on commit e2bca4e

Please sign in to comment.