Skip to content

Commit

Permalink
Release: Add a guide for releasing KBS
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Porter <[email protected]>
  • Loading branch information
portersrc committed Feb 9, 2024
1 parent e7b3407 commit 37988bc
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions release-guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# KBS Release Guide

The follow steps are a guide for releasing kbs:

1. Identify a valid release candidate. This is partly a sanity-checking step.
For example, assuming you want the most recent commit, start by checking the
tests of the last PR that was merged, and verify that the tests all passed (or
any failures were acceptable in that context). Similarly, locate the ghcr kbs
images that were created by the PR.

2. Copy the ghcr images you identified in step (1). The new copy will be the
released version. For example, if you are satisfied with the "latest" images in
ghcr, and assuming you are releasing v0.8.2, these would be the ghcr package
mappings:
```
staged-images/kbs:latest -> key-broker-service:built-in-as-v0.8.2
staged-images/kbs-grpc-as:latest -> key-broker-service:v0.8.2
staged-images/rvps:latest -> reference-value-provider-service:v0.8.2
staged-images/coco-as-grpc:latest -> attestation-service:v0.8.2
staged-images/coco-as-restful:latest -> attestation-service:rest-v0.8.2
```

3. Create a PR for the release. This PR needs to update the kubernetes
kustomization.yaml file: `kbs/config/kubernetes/base/kustomization.yaml`. The
`newTag` should be bumped to reflect the new version, e.g.
`built-in-as-v0.8.2`.

4. After the PR passes all tests and is merged, use the kbs github page to tag
the main branch with the release version.

5. Use the github kbs page to also create a new release.

0 comments on commit 37988bc

Please sign in to comment.