Skip to content

Commit

Permalink
feat(helm): publish OCI helm charts (#1430)
Browse files Browse the repository at this point in the history
* feat(helm): publish OCI helm charts

Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>

* fix: remove lowercase setup as discussed in review

* fix: use repository variable

---------

Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
  • Loading branch information
M0NsTeRRR authored Dec 16, 2024
1 parent 9d82de4 commit f503504
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

jobs:
release:
permissions:
contents: write # to push chart release and create a release (helm/chart-releaser-action)
packages: write # needed for ghcr access

runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -39,3 +43,20 @@ jobs:
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_GENERATE_RELEASE_NOTES: true

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
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/*; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY}"
done

0 comments on commit f503504

Please sign in to comment.