diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml new file mode 100644 index 0000000..8743389 --- /dev/null +++ b/.github/workflows/helm.yaml @@ -0,0 +1,36 @@ +name: Helm Chart + +on: + push: + branches: [ "*" ] + tags: [ "helm-v" ] + pull_request: + branches: [ "*" ] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: azure/setup-helm@v1 + with: + version: 3.3.4 + - name: Linting Chart + run: helm lint ./helm/kamaji + release: + if: startsWith(github.ref, 'refs/tags/helm-v') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Publish Helm chart + uses: stefanprodan/helm-gh-pages@master + with: + token: ${{ secrets.BOT_GITHUB_TOKEN }} + charts_dir: helm + charts_url: https://clastix.github.io/charts + owner: clastix + repository: charts + branch: gh-pages + target_dir: . + commit_username: prometherion + commit_email: dario@tranchitella.eu