From 4633769366ed6432abdf83334761be700ffc9347 Mon Sep 17 00:00:00 2001 From: Daniel Mann Date: Tue, 15 Jul 2025 11:28:34 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 14db86b..db91269 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -111,16 +111,22 @@ pipeline { sed -i 's/^version: .*/version: ${newTag}/' Chart.yaml sed -i 's/^appVersion: .*/appVersion: ${newTag}/' Chart.yaml - echo "[INFO] Packaging chart..." - helm package . + echo "[INFO] Removing old chart packages..." + cd .. + rm -f tatort-*.tgz - echo "[INFO] Updating index.yaml..." + echo "[INFO] Packaging chart into parent dir..." + cd tatort + helm package . --destination .. + + echo "[INFO] Updating index.yaml in parent dir..." + cd .. helm repo index . --merge index.yaml || helm repo index . echo "[INFO] Committing Helm chart changes..." git config user.name "Jenkins" git config user.email "jenkins@innohub.local" - git add values.yaml Chart.yaml *.tgz index.yaml + git add tatort/values.yaml tatort/Chart.yaml tatort-*.tgz index.yaml git commit -m "ci: bump tatort chart to ${newTag}, package + index" git push origin main """