summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-05-28 16:08:58 +0200
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-05-28 16:34:06 +0200
commit2915ed89da312d696673bd705bf0481222c33b13 (patch)
tree14fc8b8ca05affbad564de7069cafa408d359fc4 /shell
parent9fc653789431bc303048b12e5c9a9e8e8e6bdf8c (diff)
[OOM] Use new helm repositories
Instead of using "old" repositories, uses the new ones Issue-ID: OOM-2759 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I011a7ff225379a0648de8eadb687d4f7fe0a0fa8
Diffstat (limited to 'shell')
-rwxr-xr-xshell/helm-repo-init.sh1
-rwxr-xr-xshell/publish_helm_charts.sh9
2 files changed, 4 insertions, 6 deletions
diff --git a/shell/helm-repo-init.sh b/shell/helm-repo-init.sh
index d8990434a..937f0e7d0 100755
--- a/shell/helm-repo-init.sh
+++ b/shell/helm-repo-init.sh
@@ -8,3 +8,4 @@ chartmuseum --port=6464 --storage="local" --storage-local-rootdir=".chartstorage
source helm.prop
$HELM_BIN plugin install https://github.com/chartmuseum/helm-push.git
$HELM_BIN repo add local http://localhost:6464
+$HELM_BIN repo add onap http://localhost:6464
diff --git a/shell/publish_helm_charts.sh b/shell/publish_helm_charts.sh
index 9c511c5b6..a6a09ebf1 100755
--- a/shell/publish_helm_charts.sh
+++ b/shell/publish_helm_charts.sh
@@ -11,16 +11,13 @@ for chart in "${helm_charts[@]}"; do
chart=$(echo "$chart" | xargs)
case "$BUILD_TYPE" in
'snapshot')
- echo "-n --upload-file $chart https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$GERRIT_BRANCH/$chart"
- curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$GERRIT_BRANCH/$chart"
- curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE//$GERRIT_BRANCH/$GIT_COMMIT/$chart"
+ curl -n --upload-file "$chart" "https://nexus3.onap.org/repository/onap-helm-testing/"
;;
'staging')
- curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$GERRIT_BRANCH/$chart"
- curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$GERRIT_BRANCH/$GIT_COMMIT/$chart"
+ curl -n --upload-file "$chart" "https://nexus3.onap.org/repository/onap-helm-testing/"
;;
'release')
- curl -n --upload-file "$chart" "https://nexus.onap.org/content/sites/oom-helm-$BUILD_TYPE/$chart"
+ curl -n --upload-file "$chart" "https://nexus3.onap.org/repository/onap-helm-release/"
;;
*)
echo "You must set BUILD_TYPE to one of (snapshot, staging, release)."