From d7356d600ef7f22a3525ae1ca94f5840bf2e86be Mon Sep 17 00:00:00 2001 From: Redish101 Date: Wed, 30 Jul 2025 16:37:57 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=87=AA=E5=8A=A8=E5=B0=86helm=20chart?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E8=87=B3=E6=B3=A8=E5=86=8C=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..3712002 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -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 \ No newline at end of file