Skip to main content

Working with Helm

Publish Helm Chart

  1. Push chart to the repository:

    $ curl -u <onedev_account_name>:<onedev_password_or_access_token> -X POST --upload-file /path/to/chart.tgz https://onedev.example.com/<project path>/~helm
    ParamExplanation
    <onedev_account_name>name of OneDev account with package write permission over the project
    <onedev_password_or_access_token>password or access token of OneDev account
    <project path>path of a project with package management enabled
  2. For CI/CD job, run below to push chart to the repository via command step:

    # Use job token to tell OneDev the build pushing the chart
    # Job secret 'access-token' should be defined in project build setting as an access token with package write permission

    curl -u @job_token@:@secret:access-token@ -X POST --upload-file /path/to/chart.tgz https://onedev.example.com/<project path>/~helm
    ParamExplanation
    <project path>same as above

Consume Published Helm Chart

The package detail page contains instructions on how to consume published chart.