Skip to content

Commit

Permalink
Publish charts as OCI image on GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Apr 5, 2024
1 parent 8a561f3 commit c08f254
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,20 @@ jobs:
config: config.yaml
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- 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 GitHub Container Registry
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 c08f254

Please sign in to comment.