Add Helm chart
pipeline / build-and-push-images (push) Successful in 1m46s
pipeline / lint-and-publish-chart (push) Failing after 14s

This commit is contained in:
2026-05-11 23:02:28 +02:00
parent 259ad574d1
commit 3c057fcc0a
11 changed files with 446 additions and 0 deletions
+39
View File
@@ -29,3 +29,42 @@ jobs:
tags: |
git.vhaudiquet.fr/vhaudiquet/vhaudiquet.fr:latest
git.vhaudiquet.fr/vhaudiquet/vhaudiquet.fr:${{ github.sha }}
lint-and-publish-chart:
runs-on: ubuntu-latest
needs: build-and-push-images
steps:
- name: Checkout repository
uses: https://gitea.com/actions/checkout@v4
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v5
- name: Update Chart version and appVersion
run: |
# Get base chart version from Chart.yaml
BASE_VERSION=$(grep '^version:' chart/Chart.yaml | awk '{print $2}')
# Use timestamp for ordered versions (e.g., 0.1.0-20240511.130400)
TIMESTAMP=$(date -u +"%Y%m%d.%H%M%S")
CHART_VERSION="${BASE_VERSION}-${TIMESTAMP}"
# Update both version and appVersion
sed -i "s/^version:.*/version: \"${CHART_VERSION}\"/" chart/Chart.yaml
sed -i "s/^appVersion:.*/appVersion: \"${{ github.sha }}\"/" chart/Chart.yaml
echo "chart_version=${CHART_VERSION}" >> $GITHUB_ENV
- name: Lint Helm chart
run: helm lint chart/
- name: Package Helm chart
run: helm package chart/
- name: Push Helm chart to Gitea registry
run: |
curl --user ${{ github.actor }}:${{ secrets.PACKAGES_TOKEN }} \
-X POST \
--upload-file vhaudiquet-fr-*.tgz \
https://git.vhaudiquet.fr/api/packages/${{ github.actor }}/helm/api/charts