mirror of
https://github.com/open-webui/helm-charts
synced 2025-06-26 18:16:14 +00:00
Push the helm charts to ghcr.io as an OCI artifact
This commit is contained in:
parent
b7b6bc2022
commit
7273974943
22
.github/workflows/helm-release.yml
vendored
22
.github/workflows/helm-release.yml
vendored
@ -11,6 +11,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
packages: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
@ -23,11 +24,6 @@ jobs:
|
|||||||
git config user.name "$GITHUB_ACTOR"
|
git config user.name "$GITHUB_ACTOR"
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
uses: azure/setup-helm@v4
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Add Dependency Repos
|
- name: Add Dependency Repos
|
||||||
run: |
|
run: |
|
||||||
helm repo add ollama https://otwld.github.io/ollama-helm/
|
helm repo add ollama https://otwld.github.io/ollama-helm/
|
||||||
@ -41,3 +37,19 @@ jobs:
|
|||||||
charts_dir: charts/
|
charts_dir: charts/
|
||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
run: |
|
||||||
|
echo "${GHCR_REGISTRY_PASSWORD}" | helm registry login ghcr.io --username ${{ github.actor }} --password-stdin
|
||||||
|
env:
|
||||||
|
GHCR_REGISTRY_PASSWORD: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
- name: Push Charts to ghcr.io
|
||||||
|
run: |
|
||||||
|
for pkg in .cr-release-packages/*; do
|
||||||
|
if [ -z "${pkg:-}" ]; then
|
||||||
|
echo "No charts to release"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
helm push "${pkg}" oci://ghcr.io/${{ github.repository }}
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user