Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 2.44 KB

release.md

File metadata and controls

36 lines (20 loc) · 2.44 KB

Release Process

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.

Release a chart

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:

  1. A user creates a PR that increases the version field of the Chart.yaml (and possibly introduces other useful changes)
  2. An approver approves the PR
  3. @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.

Automation explained

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.

GitHub Actions workflow

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.

GitHub Pages job

Eventually, the GitHub pages job will publish the updated index to https://falcosecurity.github.io/charts/index.yaml, and the process completes.