Skip to content
Snippets Groups Projects
Commit e5b95b8a authored by ismail's avatar ismail
Browse files

CI: updated the location of ci-helm charts

parent ef380cf1
No related branches found
No related tags found
1 merge request!17Helm tutorial
...@@ -154,8 +154,8 @@ class ClusterDeploy: ...@@ -154,8 +154,8 @@ class ClusterDeploy:
imageName = eachImage[0] imageName = eachImage[0]
imageTag = eachImage[1] imageTag = eachImage[1]
nameSufix = '' nameSufix = ''
subprocess.run(f'sed -i -e "s#PROJECT#{ocProjectName}#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" ./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': if imageName == 'oai-nrf':
nameSufix = 'nrf' nameSufix = 'nrf'
elif imageName == 'oai-amf': elif imageName == 'oai-amf':
...@@ -164,7 +164,7 @@ class ClusterDeploy: ...@@ -164,7 +164,7 @@ class ClusterDeploy:
nameSufix = 'smf' nameSufix = 'smf'
elif imageName == 'oai-spgwu-tiny': elif imageName == 'oai-spgwu-tiny':
nameSufix = 'spgwu' 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())) res2 = re.search('STATUS: deployed', str(res.strip()))
if res2 is None: if res2 is None:
subprocess.run(f'echo "{imageName}: HELM KO" >> archives/5gcn_helm_summary.txt 2>&1', shell=True) subprocess.run(f'echo "{imageName}: HELM KO" >> archives/5gcn_helm_summary.txt 2>&1', shell=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment