From bd91266e7db6acd89f3fa91f125f57ac0fdebae0 Mon Sep 17 00:00:00 2001 From: Michael Kora <80787590+MichaelKora@users.noreply.github.com> Date: Wed, 21 Dec 2022 18:42:01 +0100 Subject: [PATCH] Lint and release helm charts (#158) --- .github/lint-config.yaml | 1 + .github/workflows/helm-lint.yaml | 14 ++++++++++++++ .github/workflows/helm-release.yaml | 19 +++++++++++++++++++ .gitignore | 1 + charts/README.md | 13 +------------ 5 files changed, 36 insertions(+), 12 deletions(-) create mode 100644 .github/lint-config.yaml create mode 100644 .github/workflows/helm-lint.yaml create mode 100644 .github/workflows/helm-release.yaml diff --git a/.github/lint-config.yaml b/.github/lint-config.yaml new file mode 100644 index 00000000..b225195c --- /dev/null +++ b/.github/lint-config.yaml @@ -0,0 +1 @@ +target-branch: "master" diff --git a/.github/workflows/helm-lint.yaml b/.github/workflows/helm-lint.yaml new file mode 100644 index 00000000..9152511c --- /dev/null +++ b/.github/workflows/helm-lint.yaml @@ -0,0 +1,14 @@ +name: Helm lint + +on: + push: + +jobs: + helm-lint: + runs-on: ubuntu-22.04 + steps: + - name: Lint Helm chart + uses: bakdata/ci-templates/actions/helm-lint@v1.13.2 + with: + lint-config-path: ".github/lint-config.yaml" + ref: ${{ github.ref_name }} diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml new file mode 100644 index 00000000..769bb5be --- /dev/null +++ b/.github/workflows/helm-release.yaml @@ -0,0 +1,19 @@ +name: Release Helm Charts + +on: + push: + tags: + - "**" + +jobs: + call-workflow-passing-data: + name: Release & Publish Helm chart + uses: bakdata/ci-templates/.github/workflows/helm-multi-release.yaml@v1.13.2 + with: + charts-path: "./charts" + subdirs: "['producer-app','producer-app-cleanup-job','rclone-copy','streams-app','streams-app-cleanup-job']" + gh-pages-branch: gh-pages + secrets: + github-username: ${{ secrets.GH_USERNAME }} + github-email: ${{ secrets.GH_EMAIL }} + github-token: ${{ secrets.GH_TOKEN }} diff --git a/.gitignore b/.gitignore index 0f516bd7..69724790 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .* +!.github !.gitignore build/ out/ diff --git a/charts/README.md b/charts/README.md index fa3d25ae..41d07558 100644 --- a/charts/README.md +++ b/charts/README.md @@ -5,17 +5,6 @@ Collection of commonly used charts associated with bakdata Kafka streaming appli ## Install ``` -helm repo add bakdata-common https://raw.githubusercontent.com/bakdata/streams-bootstrap//charts/ +helm repo add bakdata-common https://bakdata.github.io/streams-bootstrap/ helm install bakdata-common/ ``` - -## Development - -You can add new charts in a separate folder or update existing ones. To update the helm repository please run: - -``` -cd -helm package . -cd .. -helm repo index . -```