Skip to content

Commit

Permalink
Merge pull request #18 from monotek/release-package
Browse files Browse the repository at this point in the history
push chart to ghcr
  • Loading branch information
monotek authored Apr 26, 2024
2 parents 015e34d + 615c665 commit a04519d
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,31 @@ jobs:
with:
version: "${{ env.helm-version }}"

- name: Add dependency chart repos
run: helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Run chart-releaser
uses: helm/chart-releaser-action@main
uses: helm/chart-releaser-action@v1.6.0
env:
CR_GENERATE_RELEASE_NOTES: true
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: .

# see https://github.com/helm/chart-releaser/issues/183
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push chart to GHCR
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"
done

0 comments on commit a04519d

Please sign in to comment.