diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73a95f1..42b115e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,3 +101,12 @@ jobs: helm package ./charts/homer-operator -d ./artifacts CHART_NAME=$(ls ./artifacts | grep .tgz) helm push ./artifacts/$CHART_NAME oci://ghcr.io/${{ github.repository_owner }}/homer-operator + + - name: Update Helm repository + run: | + git checkout gh-pages || git checkout --orphan gh-pages + mv ./artifacts/* ./ + helm repo index . --url https://arch-anes.github.io/homer-operator + git add . + git commit -m "Update Helm chart" + git push origin gh-pages diff --git a/.gitignore b/.gitignore index 8b1f09b..f49c3f5 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,4 @@ go.work.sum /homer-operator -*.tgz +charts/*.tgz diff --git a/README.md b/README.md index 94245fb..c625dbe 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,14 @@ A homer operator that automatically generated homer config # Installation ## Helm + +### Repository +``` +helm repo add homer-operator https://arch-anes.github.io/homer-operator +helm install homer-operator homer-operator/homer-operator +``` + +### OCI ``` helm install homer-operator oci://ghcr.io/arch-anes/homer-operator/homer-operator ```