Merge pull request #3 from redish101/ci/helm-chart
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 17s

ci: 自动将helm chart推送至注册表
This commit is contained in:
2025-07-31 08:34:04 +08:00
committed by GitHub

35
.gitea/workflows/ci.yaml Normal file
View File

@ -0,0 +1,35 @@
name: Push to Helm Chart Repository
on:
push:
branches:
- main
env:
USERNAME: ${{ secrets.HELM_REGISTRY_USERNAME }}
PASSWORD: ${{ secrets.HELM_REGISTRY_PASSWORD }}
REGISTRY: https://git.liteyuki.org/api/packages/kubernetes/helm
jobs:
build:
runs-on: liteyukios-latest
steps:
- name: Checkout code
uses: https://git.liteyuki.org/actions/checkout@v4
- name: Install Helm
uses: https://git.liteyuki.org/actions/setup-helm@v4
- name: Set up Helm repository
run: |
helm repo add --username ${{ env.USERNAME }} --password ${{ env.PASSWORD }} my-repo ${{ env.REGISTRY }}
helm repo update
helm plugin install https://github.com/chartmuseum/helm-push
- name: Package Helm chart
run: |
helm package helm
- name: Push Helm chart
run: |
helm cm-push *.tgz my-repo