Files
HelmChartSammlung/.gitea/workflows/build-chart-paperless-ngx.yml
Marko Oldenburg 97c32612d6 Update workflow to build Helm chart on main branch
This commit modifies the Git workflow for building the Helm chart
for Paperless NGX. The primary change is the update of the
triggering branch from 'patch-new-paperless' to 'main' for push
events. Additionally, the paths filter is re-enabled to ensure
that the workflow only triggers when changes are made to
"charts/paperless-ngx/Chart.yaml".

These adjustments were necessary to align the workflow with the
project's main branch, ensuring that any updates to the Helm
chart are promptly built and packaged. There are no breaking
changes in this update, but the workflow will not execute for
changes on other branches.
2025-11-23 11:21:45 +01:00

49 lines
1.6 KiB
YAML

name: "Build Helm Chart"
on:
push:
branches:
- main
paths:
- "charts/paperless-ngx/Chart.yaml"
jobs:
helm-package:
runs-on: ubuntu-latest
env:
APP: charts/paperless-ngx
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set Helm Chart App Name and Version
id: get_version
run: |
APP_NAME=$(grep -oP '(?<=^name: ).*' ${{ env.APP }}/Chart.yaml)
echo "Helm Chart App Name: $APP_NAME"
echo "::set-output name=app::$APP_NAME"
CHART_VERSION=$(grep -oP '(?<=^version: ).*' ${{ env.APP }}/Chart.yaml)
echo "Helm Chart version: $CHART_VERSION"
echo "::set-output name=tag::$CHART_VERSION"
- name: Setup Helm
run: |
#curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
curl -kSso /usr/local/bin/helm https://debmirror.cooltux.net/helm-v3.18.4 && chmod +x /usr/local/bin/helm
helm version
- name: Add Helm repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add bjw-s https://bjw-s-labs.github.io/helm-charts/
- name: Package Helm Chart
run: |
helm dependency update ${{ env.APP }}
helm lint ${{ env.APP }}
helm package ${{ env.APP }}
- name: Upload Helm Package to repo
run: |
curl --user ${{ secrets.USER }}:${{ secrets.TOKEN }} -X POST --upload-file ./${{ steps.get_version.outputs.app }}-${{ steps.get_version.outputs.tag }}.tgz ${{ vars.HELMREGISTRY }}/api/packages/${{ vars.OWNER }}/helm/api/charts