mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
🪖 ci: Helm OCI Publishing (#7256)
* Adding helm oci publishing (#3) Signed-off-by: Clay Rosenthal <clayros@amazon.com> * Update chart version Signed-off-by: Clay Rosenthal <clayros@amazon.com> * Update helm release Signed-off-by: Clay Rosenthal <clayros@amazon.com> * Update helm chart package path Signed-off-by: Clay Rosenthal <clayros@amazon.com> --------- Signed-off-by: Clay Rosenthal <clayros@amazon.com>
This commit is contained in:
parent
0fdca8ddbd
commit
04d74a7e07
2 changed files with 46 additions and 10 deletions
53
.github/workflows/helmcharts.yml
vendored
53
.github/workflows/helmcharts.yml
vendored
|
@ -4,12 +4,13 @@ name: Build Helm Charts on Tag
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "*"
|
- "chart-*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
packages: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -26,15 +27,49 @@ jobs:
|
||||||
uses: azure/setup-helm@v4
|
uses: azure/setup-helm@v4
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
- name: Build Subchart Deps
|
- name: Build Subchart Deps
|
||||||
run: |
|
run: |
|
||||||
cd helm/librechat-rag-api
|
cd helm/librechat
|
||||||
helm dependency build
|
helm dependency build
|
||||||
|
cd ../librechat-rag-api
|
||||||
|
helm dependency build
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Get Chart Version
|
||||||
uses: helm/chart-releaser-action@v1.6.0
|
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:
|
with:
|
||||||
charts_dir: helm
|
registry: ghcr.io
|
||||||
skip_existing: true
|
username: ${{ github.actor }}
|
||||||
env:
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CR_TOKEN: "${{ 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 }}
|
|
@ -1,6 +1,7 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: librechat
|
name: librechat
|
||||||
description: A Helm chart for 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.
|
# 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
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# 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
|
# 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
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue