From e5b95b8a6b73caeee031e687aa6070df630da2e2 Mon Sep 17 00:00:00 2001
From: ismail <mohammed.ismail@openairinterface.org>
Date: Mon, 2 Aug 2021 16:57:07 +0200
Subject: [PATCH] CI: updated the location of ci-helm charts

Signed-off-by: ismail <mohammed.ismail@openairinterface.org>
---
 ci-scripts/helmDeploy.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ci-scripts/helmDeploy.py b/ci-scripts/helmDeploy.py
index 2920884b..13fce9b1 100644
--- a/ci-scripts/helmDeploy.py
+++ b/ci-scripts/helmDeploy.py
@@ -154,8 +154,8 @@ class ClusterDeploy:
 			imageName = eachImage[0]
 			imageTag = eachImage[1]
 			nameSufix = ''
-			subprocess.run(f'sed -i -e "s#PROJECT#{ocProjectName}#g" ./charts/{imageName}/values.yaml', shell=True)
-			subprocess.run(f'sed -i -e "s#TAG#{imageTag}#g" ./charts/{imageName}/values.yaml', shell=True)
+			subprocess.run(f'sed -i -e "s#PROJECT#{ocProjectName}#g" ./ci-scripts/charts/{imageName}/values.yaml', shell=True)
+			subprocess.run(f'sed -i -e "s#TAG#{imageTag}#g" ./ci-scripts/charts/{imageName}/values.yaml', shell=True)
 			if imageName == 'oai-nrf':
 				nameSufix = 'nrf'
 			elif imageName == 'oai-amf':
@@ -164,7 +164,7 @@ class ClusterDeploy:
 				nameSufix = 'smf'
 			elif imageName == 'oai-spgwu-tiny':
 				nameSufix = 'spgwu'
-			res = subprocess.check_output(f'helm install {imageName} ./charts/{imageName}/ | tee -a archives/5gcn_helm_summary.txt 2>&1', shell=True, universal_newlines=True)
+			res = subprocess.check_output(f'helm install {imageName} ./ci-scripts/charts/{imageName}/ | tee -a archives/5gcn_helm_summary.txt 2>&1', shell=True, universal_newlines=True)
 			res2 = re.search('STATUS: deployed', str(res.strip()))
 			if res2 is None:
 				subprocess.run(f'echo "{imageName}: HELM KO" >> archives/5gcn_helm_summary.txt 2>&1', shell=True)
-- 
GitLab