Files
HelmChartSammlung/.gitea/workflows/build-chart-paperless-ai.yml
Marko Oldenburg 2d67af32a2
All checks were successful
Build Helm Chart / helm-package (push) Successful in 5s
Add support for logs directory in paperless-ai chart
This commit introduces a new volume mount for a logs directory in the
paperless-ai Helm chart. The deployment configuration is updated to
include a `logs-dir` volume that is mounted at `/app/logs`, allowing
for the collection and management of logs generated by the application.
Additionally, the version of the chart has been incremented to
`0.1.4-test1` to reflect this change.

The build workflow is also modified to trigger on pushes to the
`patch-paperless-ai` branch, ensuring that changes can be tested
separately from the main branch. These adjustments enhance
observability and facilitate better troubleshooting by storing logs
in a dedicated directory. No breaking changes are introduced.
2025-11-25 13:51:44 +01:00

45 lines
1.5 KiB
YAML

name: "Build Helm Chart"
on:
push:
branches:
- main
- patch-papaerless-ai
paths:
- "charts/paperless-ai/Chart.yaml"
jobs:
helm-package:
runs-on: ubuntu-latest
env:
APP: charts/paperless-ai
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: 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