Skip to content

Commit

Permalink
fix(csi-1054): fixed ci-publish (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
geka-evk authored Dec 19, 2024
1 parent a3df8b7 commit 1ba06c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .circleci/publish_helm_charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REVISION=${GITHUB_TAG:-$GIT_SHA1}
LOCAL_HELM_MOJALOOP_REPO_URI=${HELM_MOJALOOP_REPO_URI:-'https://mojaloop.github.io/charts/repo'}

echo "DIR=${DIR}"
echo "PWD=${PWD}"
Expand All @@ -28,6 +29,10 @@ echo "Moving packaged charts to release directory and repo folder" | tee git.log
mv repo/*.* $WORKING_RELEASE_DIRECTORY/repo
mv README.md LICENSE.md CODEOWNERS $WORKING_RELEASE_DIRECTORY

echo "Indexing repo folder" | tee git.log
cd $WORKING_RELEASE_DIRECTORY/repo
helm repo index . --url "$LOCAL_HELM_MOJALOOP_REPO_URI"

echo "Switching to release directory" | tee git.log
cd $WORKING_RELEASE_DIRECTORY
git status
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Here you will find the Business Operational Helm Charts for Reporting Services,

## Quick Links

- [http://docs.mojaloop.io/charts/](http://docs.mojaloop.io/charts/) Mojaloop Published Helm Repo
- [https://mojaloop.github.io/charts/](https://mojaloop.github.io/charts) Mojaloop Published Helm Repo
- [Documentation - Deploying Mojaloop](https://docs.mojaloop.io/documentation/deployment-guide)
- [Helm v3 Docs](https://docs.helm.sh/)

Expand Down
5 changes: 2 additions & 3 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -e

#LOCAL_HELM_MOJALOOP_REPO_URI=${HELM_MOJALOOP_REPO_URI:-'https://docs.mojaloop.io/charts/repo'}
LOCAL_HELM_MOJALOOP_REPO_URI=https://docs.mojaloop.io/charts/repo ## https://mojaloop.github.io/charts/repo
LOCAL_HELM_MOJALOOP_REPO_URI=${HELM_MOJALOOP_REPO_URI:-'https://mojaloop.github.io/charts/repo'}

#
# Script to Package all charts, and create an index.yaml in ./repo directory
Expand Down Expand Up @@ -76,7 +75,7 @@ do
done

cd ./repo
helm repo index . --url $LOCAL_HELM_MOJALOOP_REPO_URI
helm repo index . --url "$LOCAL_HELM_MOJALOOP_REPO_URI"

set +x

Expand Down

0 comments on commit 1ba06c7

Please sign in to comment.