From 2eba15932e92d2a855fee37c6569c94d8b54ec78 Mon Sep 17 00:00:00 2001 From: "David J. M. Karlsen" Date: Tue, 30 Apr 2024 15:54:41 +0200 Subject: [PATCH] Document how to deal with deps (#401) --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index a76de519..39af753f 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,25 @@ Flags: Use "cr [command] --help" for more information about a command. ``` +### Dealing with charts that have dependencies + +Unfortuntely the releaser-tool won't automatically add repositories for dependencies, and this needs to be added to your pipeline ([example](https://github.com/davidkarlsen/flyway-operator/blob/main/.github/workflows/chart-release.yaml#L31)), prior to running the releaser, like this: + +```yaml + - name: add repos + run: | + helm repo add bitnami https://charts.bitnami.com/bitnami + helm repo add bitnami-pre2022 https://raw.githubusercontent.com/bitnami/charts/eb5f9a9513d987b519f0ecd732e7031241c50328/bitnami + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + with: + charts_dir: config/helm-chart + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" +``` + + ### Create GitHub Releases from Helm Chart Packages Scans a path for Helm chart packages and creates releases in the specified GitHub repo uploading the packages.