feat: add helm-repo release ci (with usage of github-pages as helm repo)

Change-Id: 3dde8c5cac91543dc97bd38918de00e7af35d7a7
Signed-off-by: genofire <geno+dev@fireorbit.de>
pull/6760/head
genofire 2023-06-28 13:35:21 +02:00
parent d859da11b0
commit b37e710c9d
2 changed files with 43 additions and 3 deletions

View File

@ -0,0 +1,38 @@
name: Release Charts
on:
push:
branches:
- main
# legacy support
- master
jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: "kubernetes/helm"

View File

@ -34,9 +34,10 @@ How to test this specific setup:
image:
tag: "latest"
pullPolicy: Always
```
Important notes:
Important notes:
1. If you have multiple host and aliases setup set aliasgroups in my_values.yaml
```yaml
collabora:
@ -53,7 +54,8 @@ How to test this specific setup:
5. Install helm-chart using below command (with a new namespace collabora)
```bash
helm install --create-namespace --namespace collabora collabora-online ./kubernetes/helm/collabora-online/ -f my_values.yaml
helm repo add collabora https://genofire.github.io/collaboraonline-helm/
helm install --create-namespace --namespace collabora collabora-online collabora/collabora-online -f my_values.yaml
```
6. Finally spin the collabora-online in kubernetes
@ -136,7 +138,7 @@ How to test this specific setup:
* To uninstall the helm chart
```bash
helm uninstall collabora-online -n collabora
helm uninstall --namespace collabora collabora-online
```
## Notes: