Skip to content

Commit

Permalink
Create and update helm repo via gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
abelfodil committed Dec 26, 2024
1 parent 7545a22 commit 1f3d22e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ go.work.sum

/homer-operator

*.tgz
charts/*.tgz
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 1f3d22e

Please sign in to comment.