From 38ca7bb2301ecf15216e2c99887dbd32e0d80800 Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Mon, 15 Sep 2025 15:39:29 +0200 Subject: [PATCH 1/2] feat(helm): publish Helm chart to OCI registry Signed-off-by: Nicolas Lamirault --- .github/workflows/release-chart.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index c30258b..92b0238 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -6,6 +6,9 @@ on: jobs: helm-release-chart: + permissions: + contents: write + packages: write runs-on: ubuntu-latest steps: - name: Checkout @@ -21,4 +24,21 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.7.0 env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + + - 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 From dd2eeec033b290a6e76cd408faa4dfdeb32b8ac8 Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Mon, 15 Sep 2025 15:40:50 +0200 Subject: [PATCH 2/2] feat(helm): typo Signed-off-by: Nicolas Lamirault --- .github/workflows/release-chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index 92b0238..4291a2c 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -40,5 +40,5 @@ jobs: if [ -z "${pkg:-}" ]; then break fi - helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm-charts" + helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/meilisearch-kubernetes" done