This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from paralta/multimod-release
test: multimod release
- Loading branch information
Showing
6 changed files
with
140 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ jobs: | |
revert | ||
style | ||
test | ||
release | ||
scopes: | | ||
api | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Release | ||
|
||
This document outlines the process for creating a new release for VMClarity using the [Go MultiMod Releaser](https://github.com/open-telemetry/opentelemetry-go-build-tools/tree/main/multimod). All code block examples provided below correspond to an update to version `v0.7.0`, please update accordingly. | ||
|
||
## 1. Update the New Release Version | ||
|
||
* Create a new branch for the release version update. | ||
```sh | ||
git checkout -b release/v0.7.0 | ||
``` | ||
|
||
* Modify the `versions.yaml` file to update the version for VMClarity's module-set. Keep in mind that the same version is applied to all modules. | ||
```diff | ||
vmclarity: | ||
- version: v0.6.0 | ||
+ version: v0.7.0 | ||
``` | ||
|
||
* Commit the changes with a suitable message. | ||
```sh | ||
git add versions.yaml | ||
git commit -m "release: update module set to version v0.7.0" | ||
``` | ||
|
||
* Run the version verification command to check for any issues. | ||
```sh | ||
make multimod-verify | ||
``` | ||
|
||
## 2. Bump All Dependencies to the New Release Version | ||
|
||
* Run the following command to update all `go.mod` files to the new release version. | ||
```sh | ||
make multimod-prerelease | ||
``` | ||
|
||
* Review the changes made in the last commit to ensure correctness. | ||
|
||
* Push the branch to the GitHub repository. | ||
```sh | ||
git push origin release/v0.7.0 | ||
``` | ||
|
||
* Create a pull request with the changes. | ||
|
||
## 3. Create and Push Tag | ||
|
||
* After the pull request is approved and merged, update your local main branch. | ||
```sh | ||
git checkout main | ||
git pull origin main | ||
``` | ||
|
||
* Create and push a new tag in order to trigger the `Release` workflow. | ||
```sh | ||
git tag -a v0.7.0 | ||
git push origin v0.7.0 | ||
``` | ||
|
||
## Post-release Checks | ||
Verify that the `Release` workflow was completed successfully in the GitHub Actions section. | ||
Ensure that the release is visible in the GitHub releases page. Additionally, check that the release description is correct and all assets are listed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,3 +231,15 @@ bin/typos-$(TYPOS_VERSION): | $(BIN_DIR) | |
@curl -sSfL 'https://github.com/crate-ci/typos/releases/download/v$(TYPOS_VERSION)/typos-v$(TYPOS_VERSION)-$(TYPOS_ARCH)-$(TYPOS_OSTYPE).tar.gz' --output - \ | ||
| tar xzvOf - './typos' > $@ | ||
@chmod +x $@ | ||
|
||
#### | ||
## Go MultiMod Releaser | ||
#### | ||
|
||
MULTIMOD_BIN := $(BIN_DIR)/multimod | ||
MULTIMOD_REPO_DIR := $(BIN_DIR)/opentelemetry-go-build-tools | ||
|
||
bin/multimod: | ||
@if [ ! -d $(MULTIMOD_REPO_DIR) ]; then git clone [email protected]:open-telemetry/opentelemetry-go-build-tools.git $(MULTIMOD_REPO_DIR); fi | ||
@cd $(MULTIMOD_REPO_DIR)/multimod && go build -o $(MULTIMOD_BIN) main.go | ||
@rm -rf $(MULTIMOD_REPO_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module-sets: | ||
vmclarity: | ||
version: v0.6.0 | ||
modules: | ||
- github.com/openclarity/vmclarity/uibackend/types | ||
- github.com/openclarity/vmclarity/uibackend/server | ||
- github.com/openclarity/vmclarity/uibackend/client | ||
- github.com/openclarity/vmclarity/core | ||
- github.com/openclarity/vmclarity/provider | ||
- github.com/openclarity/vmclarity/utils | ||
- github.com/openclarity/vmclarity/installation | ||
- github.com/openclarity/vmclarity/cli | ||
- github.com/openclarity/vmclarity/testenv | ||
- github.com/openclarity/vmclarity/api/types | ||
- github.com/openclarity/vmclarity/api/server | ||
- github.com/openclarity/vmclarity/api/client | ||
- github.com/openclarity/vmclarity/e2e | ||
- github.com/openclarity/vmclarity/containerruntimediscovery/types | ||
- github.com/openclarity/vmclarity/containerruntimediscovery/server | ||
- github.com/openclarity/vmclarity/containerruntimediscovery/client | ||
- github.com/openclarity/vmclarity/orchestrator |