From ad9fd78133840222f0ee08688064c7c278b6fe8b Mon Sep 17 00:00:00 2001 From: konsthol Date: Fri, 30 May 2025 13:42:24 +0300 Subject: [PATCH] Update vars/makeHelmChart.groovy --- vars/makeHelmChart.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/makeHelmChart.groovy b/vars/makeHelmChart.groovy index 113ac42..f0b03dd 100644 --- a/vars/makeHelmChart.groovy +++ b/vars/makeHelmChart.groovy @@ -1,7 +1,7 @@ def call(String chartPath, String appName, String version) { container('helm') { sh "sed -i 's/^version:.*/version: ${version}/' ${chartPath}/Chart.yaml" - sh "sed -i 's|docker.io/root/example-app:1.0.0|localhost:31050/my-docker-repo/${appName}:${version}|' ${chartPath}/values.yaml" + sh "sed -i 's|docker.io/root/${appName}:1.0.0|localhost:31050/my-docker-repo/${appName}:${version}|' ${chartPath}/values.yaml" sh "helm package ${chartPath}" echo "Helm chart packaged successfully: ${chartPath}" }