Skip to content

Commit

Permalink
feat: add OCI registry support for Helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
domolitom committed Oct 17, 2024
1 parent 693e69f commit 9471107
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- master
paths:
- 'charts/**'
- "charts/**"

jobs:
release:
Expand All @@ -27,5 +27,20 @@ jobs:
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true
- name: Login to GHCR
uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push charts to GHCR
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*.tgz; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm-charts"
done

0 comments on commit 9471107

Please sign in to comment.