A set of scripts for pushing Helm/Chart packages to a raw Nexus repository
npm install helm-chartsThis utility helps to build and publish Helm charts
to a raw Nexus repository.
It addresses issues with hosting
helm charts on Nexus which currently doesn't support Helm repos.
``bashInstall the utility
npm i -g helm-charts
The chart publishing mechanism puts its best efforts to resolve possible charts versioning conflicts.
When the chart that's about to be added already exists in the remote repo:
- it is skipped - when they both have the same content (sha256 checksum matches).
- an error is raised - when their content is different.
$3
1. Install the utility in your project.
`bash
# Install the utility
npm i --save-dev helm-charts
`2. Put the following in your
package.json:
`json
{
"scripts": {
"helm-charts:build": "helm-charts build",
"helm-charts:publish": "helm-charts publish --repository https://some.nexus.example.com/repository/helm-raw/charts"
}
}
`3. Run it as follows:
`bash
npm run helm-charts:build
npm run helm-charts:publish -- --username --password
``