From 04d74a7e0742a57bd906f56a57b0246902f11d9e Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Mon, 11 Aug 2025 13:21:05 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=96=20ci:=20Helm=20OCI=20Publishing=20?= =?UTF-8?q?(#7256)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adding helm oci publishing (#3) Signed-off-by: Clay Rosenthal * Update chart version Signed-off-by: Clay Rosenthal * Update helm release Signed-off-by: Clay Rosenthal * Update helm chart package path Signed-off-by: Clay Rosenthal --------- Signed-off-by: Clay Rosenthal --- .github/workflows/helmcharts.yml | 53 ++++++++++++++++++++++++++------ helm/librechat/Chart.yaml | 3 +- 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/.github/workflows/helmcharts.yml b/.github/workflows/helmcharts.yml index e2bc13d66..2b9f7f45d 100644 --- a/.github/workflows/helmcharts.yml +++ b/.github/workflows/helmcharts.yml @@ -4,12 +4,13 @@ name: Build Helm Charts on Tag on: push: tags: - - "*" + - "chart-*" jobs: release: permissions: contents: write + packages: write runs-on: ubuntu-latest steps: - name: Checkout @@ -26,15 +27,49 @@ jobs: uses: azure/setup-helm@v4 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - name: Build Subchart Deps run: | - cd helm/librechat-rag-api - helm dependency build + cd helm/librechat + helm dependency build + cd ../librechat-rag-api + helm dependency build - - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.6.0 + - name: Get Chart Version + id: chart-version + run: | + CHART_VERSION=$(echo "${{ github.ref_name }}" | cut -d'-' -f2) + echo "CHART_VERSION=${CHART_VERSION}" >> "$GITHUB_OUTPUT" + + # Log in to GitHub Container Registry + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 with: - charts_dir: helm - skip_existing: true - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + # Run Helm OCI Charts Releaser + # This is for the librechat chart + - name: Release Helm OCI Charts for librechat + uses: appany/helm-oci-chart-releaser@v0.4.2 + with: + name: librechat + repository: ${{ github.actor }}/librechat-chart + tag: ${{ steps.chart-version.outputs.CHART_VERSION }} + path: helm/librechat + registry: ghcr.io + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }} + + # this is for the librechat-rag-api chart + - name: Release Helm OCI Charts for librechat-rag-api + uses: appany/helm-oci-chart-releaser@v0.4.2 + with: + name: librechat-rag-api + repository: ${{ github.actor }}/librechat-chart + tag: ${{ steps.chart-version.outputs.CHART_VERSION }} + path: helm/librechat-rag-api + registry: ghcr.io + registry_username: ${{ github.actor }} + registry_password: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/helm/librechat/Chart.yaml b/helm/librechat/Chart.yaml index 9aee8a149..79c7d4bfa 100755 --- a/helm/librechat/Chart.yaml +++ b/helm/librechat/Chart.yaml @@ -1,6 +1,7 @@ apiVersion: v2 name: librechat description: A Helm chart for LibreChat +icon: https://www.librechat.ai/librechat_alt.svg # A chart can be either an 'application' or a 'library' chart. # @@ -14,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.8.9 +version: 1.8.10 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to