Update Jenkinsfile
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user