Skip to content

Commit

Permalink
Merge pull request #2 from onaio/contributing
Browse files Browse the repository at this point in the history
Add Docs on How to Contribute
  • Loading branch information
FrankApiyo authored Sep 12, 2024
2 parents 6695351 + 686e905 commit 7fac311
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
35 changes: 35 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Contributing

This repository contains packaged Helm charts for Ona. To contribute to this repository, please follow the steps below:

To add a new chart to this repository, please follow the steps below:

## 1. Package your chart:

```bash
helm package <path-to-chart>
```

This will create a `<chart-name>-<chart-version>.tgz` file based on the definition in the `Chart.yaml` file of your chart. For example, if you have a chart named `my-chart` with version `0.1.0`, the package command will create a `my-chart-0.1.0.tgz` file. To update the version of your chart, update the `version` field in the `Chart.yaml` file and run the package command again.


## 2. Move the packaged chart to a subdirectory inside this repository:

Make sure you are working on a new branch in this repository. Move the packaged chart to a subdirectory inside this repository. For example, if you have a chart named `my-chart` with version `0.1.0`, move the `my-chart-0.1.0.tgz` file to the `my-chart` subdirectory:

```bash
mkdir my-chart
mv my-chart-0.1.0.tgz my-chart/
```

This will help keep the repository organized and make it easier to manage the charts.

## 3. Update the `index.yaml` file:

For Helm to be able to find the charts in this repository, you need to update the `index.yaml` file. To do this, run the following command:

```bash
helm repo index --url https://raw.githubusercontent.com/onaio/helm-charts/master/ index.yaml .
```

This will update the `index.yaml` file with the new chart information. Make sure to commit this file and push it to the repository, then create a pull request.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ For more information about a chart, run the following command:

```bash
helm show readme ona/<chart-name>
```
```

## Contributing

To contribute to this repository, please read the [CONTRIBUTING.md](CONTRIBUTING.md) file.

0 comments on commit 7fac311

Please sign in to comment.