diff --git a/RELEASE.md b/RELEASE.md index 8baad7bcc..41fa2b859 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -17,6 +17,9 @@ release (e.g. 1.17.1) In order to create a new release of the `cloudnative-pg` chart, follow these steps: 1. Take note of the current value of the release: see `.version` in `charts/cloudnative-pg/Chart.yaml` + ```bash + yq -r '.version' charts/cloudnative-pg/Chart.yaml + ``` 2. Decide which version to create, depending on the kind of jump of the CloudNativePG release, following semver semantics. For this document, let's call it `X.Y.Z` ```bash @@ -28,7 +31,7 @@ In order to create a new release of the `cloudnative-pg` chart, follow these ste ``` 4. Update the `.version` in the [Chart.yaml](./charts/cloudnative-pg/Chart.yaml) file to `"X.Y.Z"` ```bash - sed -i -E "s/^version: ([0-9]+.?)+/version: $APP_VERSION/" charts/cloudnative-pg/Chart.yaml + sed -i -E "s/^version: ([0-9]+.?)+/version: $NEW_VERSION/" charts/cloudnative-pg/Chart.yaml ``` 5. Update everything else as required, e.g. if releasing due to a new `cloudnative-pg` version being released, you might want to update the following: @@ -67,6 +70,7 @@ In order to create a new release of the `cloudnative-pg` chart, follow these ste ``` 7. Commit and add the relevant information you wish in the commit message. ```bash + git add . git commit -S -s -m "Release cloudnative-pg-v$NEW_VERSION" --edit ``` 8. Push the new branch @@ -94,6 +98,9 @@ In order to create a new release of the `cloudnative-pg` chart, follow these ste In order to create a new release of the `cluster` chart, follow these steps: 1. Take note of the current value of the release: see `.version` in `charts/cluster/Chart.yaml` + ```bash + yq -r '.version' charts/cluster/Chart.yaml + ``` 2. Decide which version to create, depending on the kind of changes and backwards compatibility, following semver semantics. For this document, let's call it `X.Y.Z` ```bash @@ -105,7 +112,7 @@ In order to create a new release of the `cluster` chart, follow these steps: ``` 4. Update the `.version` in the [Chart.yaml](./charts/cluster/Chart.yaml) file to `"X.Y.Z"` ```bash - sed -i -E "s/^version: ([0-9]+.?)+/version: $APP_VERSION/" charts/cluster/Chart.yaml + sed -i -E "s/^version: ([0-9]+.?)+/version: $NEW_VERSION/" charts/cluster/Chart.yaml ``` 5. Run `make docs schema` to regenerate the docs and the values schema in case it is needed ```bash @@ -113,6 +120,7 @@ In order to create a new release of the `cluster` chart, follow these steps: ``` 6. Commit and add the relevant information you wish in the commit message. ```bash + git add . git commit -S -s -m "Release cluster-v$NEW_VERSION" --edit ``` 7. Push the new branch diff --git a/charts/cluster/Chart.yaml b/charts/cluster/Chart.yaml index 9cac5cbc9..dcae9cb8c 100644 --- a/charts/cluster/Chart.yaml +++ b/charts/cluster/Chart.yaml @@ -18,7 +18,7 @@ name: cluster description: Deploys and manages a CloudNativePG cluster and its associated resources. icon: https://raw.githubusercontent.com/cloudnative-pg/artwork/main/cloudnativepg-logo.svg type: application -version: 0.0.1 +version: 0.0.2 sources: - https://github.com/cloudnative-pg/charts keywords: diff --git a/charts/cluster/README.md b/charts/cluster/README.md index 812685364..3c1f33995 100644 --- a/charts/cluster/README.md +++ b/charts/cluster/README.md @@ -1,6 +1,6 @@ # cluster -![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) > **Warning** > ### This chart is under active development.