Update vars/makeHelmChart.groovy

This commit is contained in:
2025-05-30 13:06:32 +03:00
parent af2c0d6af6
commit 2c6e3de07b

View File

@@ -1,6 +1,7 @@
def call(String chartPath, String version) {
def call(String chartPath, String appName, String version) {
container('helm') {
sh "sed -i 's/^version:.*/version: ${version}/' ${chartPath}/Chart.yaml"
sh "sed -i 's/^image:.*/image: localhost:31050/my-docker-repo/${appName}:${version}/' ${chartPath}/values.yaml"
sh "helm package ${chartPath}"
echo "Helm chart packaged successfully: ${chartPath}"
}