Skip to content

Commit 2136b88

Browse files
committed
improve README.md and the release.yml workflow
1 parent ae8d283 commit 2136b88

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
- name: Push tag to remote
6060
run: ./gradlew --console=colored pushRelease
6161
shell: bash
62-
- uses: aboutbits/github-actions-base/github-create-release@v2
62+
- name: Create GitHub Release
63+
uses: aboutbits/github-actions-base/github-create-release@v2
6364
with:
6465
tag-name: 'v${{ steps.nextVersion.outputs.version }}'
6566
release-description: |
@@ -70,6 +71,9 @@ jobs:
7071
helm install postgresql-operator https://github.com/${{ github.repository }}/releases/download/v${{ steps.nextVersion.outputs.version }}/postgresql-operator-${{ steps.nextVersion.outputs.version }}.tgz
7172
```
7273
74+
With the Helm chart, the Custom Resource Definitions (CRDs) are installed automatically.
75+
However, if you deploy the operator directly from the OCI image, the CRDs are not automatically applied and must be installed separately.
76+
7377
### Manual CRD Installation
7478
```bash
7579
kubectl apply -f https://github.com/${{ github.repository }}/releases/download/v${{ steps.nextVersion.outputs.version }}/clusterconnections.postgresql.aboutbits.it-v1.yml
@@ -86,3 +90,11 @@ jobs:
8690
run: |
8791
gh release upload v${{ steps.nextVersion.outputs.version }} operator/build/helm/kubernetes/*.tgz operator/build/kubernetes/*.postgresql.aboutbits.it-v1.yml
8892
shell: bash
93+
- name: Update README.md
94+
run: |
95+
sed -i "s|releases/download/v[0-9.]*/postgresql-operator-[0-9.]*.tgz|releases/download/v${{ steps.nextVersion.outputs.version }}/postgresql-operator-${{ steps.nextVersion.outputs.version }}.tgz|g" README.md
96+
git add README.md
97+
# Guard against failing if there are no changes
98+
git diff-index --quiet HEAD || git commit -m "Update README.md with version ${{ steps.nextVersion.outputs.version }}"
99+
git push
100+
shell: bash

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ AboutBits PostgreSQL Operator is a Kubernetes operator that helps you manage Pos
3131
└──────────────────────────────────────────────────────────────────────────┘
3232
```
3333

34+
## Installation
35+
36+
### Helm Chart
37+
38+
```bash
39+
helm install postgresql-operator https://github.com/AboutBits/postgresql-operator/releases/download/v0.1.1/postgresql-operator-0.1.1.tgz
40+
```
41+
42+
With the Helm chart, the Custom Resource Definitions (CRDs) are installed automatically.
43+
However, if you deploy the operator directly from the OCI image, the CRDs are not automatically applied and must be installed separately.
44+
See the release notes for the [latest version](https://github.com/AboutBits/postgresql-operator/releases/latest) for more information.
45+
3446
## Usage
3547

3648
This operator allows you to manage PostgreSQL resources using Kubernetes manifests.

0 commit comments

Comments
 (0)