Skip to content

Commit e0625e5

Browse files
committed
Update the Release Guide about the Helm Chart package
1 parent dd4a8cc commit e0625e5

File tree

1 file changed

+54
-7
lines changed

1 file changed

+54
-7
lines changed

site/content/release-guide.md

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,26 @@ git push apache release/x.y.z
113113
Go in the branch, and set the target release version:
114114

115115
```
116-
git checkoout release/x.y.z
116+
git checkout release/x.y.z
117117
echo "x.y.z" > version.txt
118-
git commit -a
119-
git push
118+
```
119+
120+
and update the version in the Helm Chart in:
121+
122+
* `helm/polaris/Chart.yaml`
123+
* `helm/polaris/README.md`
124+
* `helm/polaris/values.yaml`
125+
126+
and commit/push the version bump:
127+
128+
```
129+
git commit -m "Bump version to x.y.z" version.txt helm/polaris/Chart.yaml helm/polaris/README.md helm/polaris/values.yaml
120130
```
121131

122132
Update `CHANGELOG.md`:
123133
```
124134
./gradlew patchChangelog
125-
git commit -a
135+
git commit CHANGELOG.md
126136
git push
127137
```
128138

@@ -188,18 +198,55 @@ cd polaris-dist-dev
188198
mkdir x.y.z
189199
cp /path/to/polaris/github/clone/repo/build/distribution/* x.y.z
190200
cp /path/to/polaris/github/clone/repo/runtime/distribution/build/distributions/* x.y.z
191-
cp -r /path/to/polaris/github/clone/repo/helm/polaris helm-chart/x.y.z
192201
svn add x.y.z
202+
```
203+
204+
### Stage Helm Chart package
205+
206+
You can now create a Helm package with the following command in the Polaris source folder:
207+
208+
```
209+
cd helm
210+
helm package --sign --key '<YOUR KEY ID HERE>' --keyring ~/.gnupg/secring.kbx polaris
211+
```
212+
213+
Create the signature and checksum for the Helm package tgz and prov files:
214+
215+
```
216+
shasum -a 512 polaris-x.y.z.tgz > polaris-x.y.z.tgz.sha512
217+
gpg --armor --output polaris-x.y.z.tgz.asc --detach-sig polaris-x.y.z.tgz
218+
shasum -a 512 polaris-x.y.z.tgz.prov > polaris-x.y.z.tgz.prov
219+
gpg --armor --output polaris-x.y.z.tgz.prov.asc --detach-sig polaris-x.y.z.tgz.prov
220+
```
221+
222+
Copy and Add the Helm package files to dist folder:
223+
224+
```
225+
cd polaris-dist-dev
226+
mkdir helm-chart/x.y.z
227+
cp helm/*.tgz* helm-chart/x.y.z
193228
svn add helm-chart/x.y.z
194-
svn commit -m"Stage Apache Polaris x.y.z RCx"
229+
```
230+
231+
You can now update the Helm index:
232+
233+
```
234+
cd helm-chart
235+
helm repo index .
236+
```
237+
238+
Dist repository is now "complete" and we can push/commit:
239+
240+
```
241+
svn commit -m "Stage Apache Polaris x.y.z RCx"
195242
```
196243

197244
### Build and stage Maven artifacts
198245

199246
You can now build and publish the Maven artifacts on a Nexus staging repository:
200247

201248
```
202-
./gradlew publishToApache -Prelease -PuseGpgAgent
249+
./gradlew publishToApache -Prelease -PuseGpgAgent -Dorg.gradle.parallel=false
203250
```
204251

205252
Next, you have to close the staging repository:

0 commit comments

Comments
 (0)