Skip to content

Commit 2f84e61

Browse files
author
robertlestak
committed
helm chart to github pages
adds a workflow to release new versions as helm chart in gh-pages which can be more easily deployed without using chart from git repo. addresses #19
1 parent c9363fc commit 2f84e61

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

.github/workflows/release-helm.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release Helm Chart
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Configure Git
21+
run: |
22+
git config user.name "$GITHUB_ACTOR"
23+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
24+
25+
- name: Install Helm
26+
uses: azure/setup-helm@v4
27+
28+
- name: Run chart-releaser
29+
uses: helm/chart-releaser-action@v1.6.0
30+
with:
31+
charts_dir: deploy
32+
env:
33+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,24 @@ spec:
502502

503503
## Deployment
504504

505-
Deploy the operator:
505+
### Using Helm Repository (Recommended)
506+
507+
Add the Helm repository:
508+
509+
```bash
510+
helm repo add cert-manager-sync https://robertlestak.github.io/cert-manager-sync
511+
helm repo update
512+
```
513+
514+
Install the operator:
515+
516+
```bash
517+
helm install cert-manager-sync cert-manager-sync/cert-manager-sync -n cert-manager --create-namespace
518+
```
519+
520+
### Using Local Chart
521+
522+
Deploy the operator from source:
506523

507524
```bash
508525
helm upgrade --install -n cert-manager cert-manager-sync ./deploy/cert-manager-sync

0 commit comments

Comments
 (0)