-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,35 @@ | ||
# workflow for release | ||
# Workflow for release | ||
|
||
## pre-steps | ||
## Prerequisite Steps | ||
|
||
* update 'version' and 'appVersion' filed in 'charts/*/Chart.yaml' | ||
* Update the `version` and `appVersion` fields in the `Chart.yaml` files located under the `charts/*` directories. | ||
|
||
* update version in '/VERSION' | ||
* Update the version in the `/VERSION` file. | ||
|
||
* a version tag should be set on right branch. The version should go with | ||
* Ensure to set a version tag on the appropriate branch. The version should follow the below format: | ||
|
||
* v0.1.0-rc0 | ||
* v0.1.0-rc0 (Release Candidate 0) | ||
* v0.1.0-rc1 (Release Candidate 1) | ||
* v0.1.0 (Initial Release) | ||
* v0.2.0-rc0 (Second Version's Release Candidate 0) | ||
* v0.2.0 (Second Version's Initial Release) | ||
|
||
* v0.1.0-rc1 | ||
## Tagging a Version | ||
|
||
* v0.1.0 | ||
|
||
* v0.1.1 | ||
|
||
* v0.1.2 | ||
|
||
* v0.2.0-rc0 | ||
|
||
* v0.2.0 | ||
When a version tag, denoted as `vx.x.x`, is pushed, the subsequent automated process initiates: | ||
|
||
## push a version tag | ||
|
||
If a tag vx.x.x is pushed , the following steps will automatically run: | ||
|
||
1. check the tag name is same with '/VERSION' | ||
|
||
2. create a branch named 'release-vx.x.x' | ||
|
||
3. build the images with the pushed tag, and push to ghcr registry | ||
|
||
4. generate the changelog by historical PR labeled as "pr/release/*" | ||
|
||
submit the changelog file to directory 'changelogs' of branch 'github_pages', with PR labeled as "pr/release/robot_update_githubpage". | ||
|
||
changelogs is generated by historical PR label: | ||
|
||
label "release/feature-new" to be classified to "New Features" | ||
|
||
label "release/feature-changed" to be classified to "Changed Features" | ||
|
||
label "release/bug" to be classified to "Fixes" | ||
|
||
5. build the chart package with the pushed tag, and submit a PR to branch 'github_pages' | ||
|
||
you cloud get the chart with command `helm repo add $REPO_NAME https://kdoctor-io.github.io/$REPO_NAME ` | ||
|
||
6. submit '/docs' to '/docs' of branch 'github_pages' | ||
|
||
7. create a GitHub Release attached with the chart package and changelog | ||
|
||
8. Finally, by hand, need approve the chart PR labeled as "pr/release/robot_update_githubpage" , and changelog PR labeled as "pr/release/robot_update_githubpage" | ||
|
||
## post | ||
|
||
1. Submit a issue of the version update to the documentation site --> <https://github.com/DaoCloud/DaoCloud-docs> | ||
1. The tag name is verified to match with `/VERSION`. | ||
2. A branch named `release-vx.x.x` is created. | ||
3. Docker images are built, tagged with the pushed tag, and then pushed to the GHCR (GitHub Container Registry). | ||
4. A changelog is generated from historical PRs labeled with `pr/release/*` and added to the `changelogs` directory in the `github_pages` branch. This changelog PR should be labeled as `pr/release/robot_update_githubpage`. The changelog categorizes historical PR labels as follows: | ||
- PRs labeled `release/feature-new` are classified as "New Features". | ||
- PRs labeled `release/feature-changed` are classified as "Changed Features". | ||
- PRs labeled `release/bug` are classified as "Fixes". | ||
5. A Helm chart package is built using the pushed tag and a PR is submitted to the `github_pages` branch. The chart can be retrieved using the command: | ||
``` | ||
helm repo add $REPO_NAME https://kdoctor-io.github.io/$REPO_NAME | ||
``` | ||
6. Content from the `/docs` directory is submitted to the `/docs` directory of the `github_pages` branch. | ||
7. A GitHub Release is created, which includes the Helm chart package and the changelog attached. | ||
8. Finally, manual approval is required for the Helm chart PR and the changelog PR, both labeled as `pr/release/robot_update_githubpage`. | ||
This process ensures version control, continuous integration, and delivery are maintained effectively. |
fe77273
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://654a08f11882d07eae054b06--egressgateway.netlify.app