diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 68e092c2..768c3de7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,3 +37,21 @@ jobs: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" CR_SKIP_EXISTING: true CR_GENERATE_RELEASE_NOTES: true + + - name: Login to GHCR + uses: docker/login-action@v3.2.0 + 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/*.tgz; do + if [ -z "${pkg:-}" ]; then + break + fi + helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm-charts" + done +