code.gitea.io/gitea@v1.22.3/docs/content/usage/packages/helm.en-us.md (about)

     1  ---
     2  date: "2022-04-14T00:00:00+00:00"
     3  title: "Helm Chart Registry"
     4  slug: "helm"
     5  sidebar_position: 50
     6  draft: false
     7  toc: false
     8  menu:
     9    sidebar:
    10      parent: "packages"
    11      name: "Helm"
    12      sidebar_position: 50
    13      identifier: "helm"
    14  ---
    15  
    16  # Helm Chart Registry
    17  
    18  Publish [Helm](https://helm.sh/) charts for your user or organization.
    19  
    20  ## Requirements
    21  
    22  To work with the Helm Chart registry use a simple HTTP client like `curl` or the [`helm cm-push`](https://github.com/chartmuseum/helm-push/) plugin.
    23  
    24  ## Publish a package
    25  
    26  Publish a package by running the following command:
    27  
    28  ```shell
    29  curl --user {username}:{password} -X POST --upload-file ./{chart_file}.tgz https://gitea.example.com/api/packages/{owner}/helm/api/charts
    30  ```
    31  
    32  or with the `helm cm-push` plugin:
    33  
    34  ```shell
    35  helm repo add  --username {username} --password {password} {repo} https://gitea.example.com/api/packages/{owner}/helm
    36  helm cm-push ./{chart_file}.tgz {repo}
    37  ```
    38  
    39  | Parameter    | Description |
    40  | ------------ | ----------- |
    41  | `username`   | Your Gitea username. |
    42  | `password`   | Your Gitea password. If you are using 2FA or OAuth use a [personal access token](development/api-usage.md#authentication) instead of the password. |
    43  | `repo`       | The name for the repository. |
    44  | `chart_file` | The Helm Chart archive. |
    45  | `owner`      | The owner of the package. |
    46  
    47  ## Install a package
    48  
    49  To install a Helm char from the registry, execute the following command:
    50  
    51  ```shell
    52  helm repo add  --username {username} --password {password} {repo} https://gitea.example.com/api/packages/{owner}/helm
    53  helm repo update
    54  helm install {name} {repo}/{chart}
    55  ```
    56  
    57  | Parameter  | Description |
    58  | ---------- | ----------- |
    59  | `username` | Your Gitea username. |
    60  | `password` | Your Gitea password or a personal access token. |
    61  | `repo`     | The name for the repository. |
    62  | `owner`    | The owner of the package. |
    63  | `name`     | The local name. |
    64  | `chart`    | The name Helm Chart. |