Skip to content

Commit f37398b

Browse files
im-kongePaulRMellorkatheris
authored
Update RELEASING.md with information about configuring other variables for the release pipeline (#102)
Signed-off-by: Lukas Kral <[email protected]> Signed-off-by: Lukáš Král <[email protected]> Co-authored-by: PaulRMellor <[email protected]> Co-authored-by: Kate Stanley <[email protected]>
1 parent c401ddd commit f37398b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

development-docs/RELEASING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,37 @@ When starting the new run, it will ask for several parameters which you need to
5757
* Source pipeline ID (currently, only the build pipeline with ID `51` can be used).
5858
* Source build ID (the ID of the build from the release branch - use the long build ID from the URL and not the shorter build number).
5959

60+
In addition, you can configure other variables used in the release pipeline.
61+
Each of these has a default value that can be used for regular releases.
62+
If you need to customize them, click the `Variables` section below the required parameters mentioned previously.
63+
You can configure:
64+
65+
- `CENTRAL_USERNAME`: The username or token name of your user token. You can generate the user token at https://central.sonatype.com/usertoken (after logging in).
66+
- `CENTRAL_PASSWORD`: The actual token generated at https://central.sonatype.com/usertoken (after logging in).
67+
- `GPG_SIGNING_KEY`: The GPG key used to sign the artifacts.
68+
- `GPG_PASSPHRASE`: The passphrase for the GPG key configured under `GPG_SIGNING_KEY`.
69+
70+
---
71+
#### Generating GPG key for signing the artifacts
72+
73+
When the artifacts are published, they are also signed using a GPG key.
74+
The pipeline uses default GPG keys generated by a maintainer. To use your own key, complete the following steps:
75+
76+
1. Generate a GPG key (`gpg --full-generate-key`), or use the key that you already use for signing commits in GitHub, for example.
77+
2. The command prompts you for a password. This password is important because you will use it for the `GPG_PASSPHRASE` variable.
78+
3. Use `gpg --list-keys` to find your key ID, and store it for the next step.
79+
4. After you generate the key and obtain its ID, publish it to the public `keyserver`:
80+
```shell
81+
gpg --keyserver keyserver.ubuntu.com --send-keys <YOUR_KEY_ID>
82+
```
83+
This step is IMPORTANT. Without it, the release pipeline will fail on signing the artifacts.
84+
5. Export the key and encode it using Base64. Then copy the encoded key and use it for the `GPG_SIGNING_KEY` variable:
85+
```shell
86+
gpg --export-secret-keys <YOUR_KEY_ID> | base64 > private.key
87+
```
88+
The contents of `private.key` need to be copied and pasted into the `GPG_SIGNING_KEY`.
89+
---
90+
6091
The release pipeline will push the images to the registry.
6192
It will also prepare in artifacts the ZIP and TAR.GZ archives with the installation files and the Helm Chart.
6293
You will need these later to attach them to the GitHub release.

0 commit comments

Comments
 (0)