Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an action for linting and releasing helm chart #364

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/helm-chart-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Lint and release the helm chart
on: push

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1

- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --chart-dirs helm --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi

- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --validate-maintainers=false --chart-dirs helm

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"

- name: Release charts
if: github.ref == ${{ github.event.repository.default_branch }}
uses: helm/[email protected]
with:
charts_dir: helm
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion helm/vernemq/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v1
appVersion: 1.13.0
description: VerneMQ is a high-performance, distributed MQTT message broker
name: vernemq
version: 1.9.0
version: 1.9.1

icon: http://www.stickpng.com/assets/thumbs/58482b21cef1014c0b5e4a24.png
3 changes: 1 addition & 2 deletions helm/vernemq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ service:
annotations: {}
annotations: {}
labels: {}


## Ingress can optionally be applied when enabling the MQTT websocket service
## This allows for an ingress controller to route web ports and arbitrary hostnames
Expand All @@ -83,7 +83,6 @@ ingress:
paths:
- path: /
pathType: ImplementationSpecific


## TLS configuration for ingress
## Secret must be manually created in the namespace
Expand Down