Our release process is automated using GitHub Actions, helm, and chart-releaser. More details under the Automation explained section. Finally, the GitHub pages feature is used to host our Helm repo.
The following process describes how to release just one chart. Since this repository can host multiple charts, the same instructions apply for any of them.
The automated process starts when the version
field of any of */Chart.yaml
file is modified and merged into the master
branch.
Thus, to trigger it, the following actions need to happen:
- A user creates a PR that increases the
version
field of theChart.yaml
(and possibly introduces other useful changes) - An approver approves the PR
- @poiana (our beloved bot) merges the PR into the
master
branch, then the CI starts
The approvers may differ depending on the chart. Please, refer to the
OWNERS
file under the specific chart directory.
Once the CI has done its job, a new tag is live on GitHub, and the site https://falcosecurity.github.io/charts indexes the new chart version.
By convention, we assume that each top-level directory of the falcosecury/charts/charts repository that contains a Chart.yaml
is a Helm chart source directory. We may extend it also to support those charts that have source files in a different repository.
The automated release process starts when any modification added to master
triggers CircleCI. It ends with a GitHub Pages job that publishes the updated index of our Helm repo.
We have two main workflows:
- test: This will check the chart lint and will also run tests to validate if the chart can be installed, if the chart have tests those will run as well.
- release: This will run everything a Pull Requests of a chart is merged, it will update the index and generate the package, and publish it.
Eventually, the GitHub pages job will publish the updated index to https://falcosecurity.github.io/charts/index.yaml, and the process completes.