2021-07-14 19:10:41 +00:00
|
|
|
name: helm-release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
paths:
|
2021-08-12 20:54:17 +00:00
|
|
|
- 'charts/kyverno-crds/Chart.yaml'
|
2021-07-14 19:10:41 +00:00
|
|
|
- 'charts/kyverno/Chart.yaml'
|
2021-07-20 07:15:33 +00:00
|
|
|
- '.github/workflows/helm-release.yaml'
|
2021-07-14 19:10:41 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-07-21 00:06:56 +00:00
|
|
|
helm-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.7
|
|
|
|
|
|
|
|
- name: Set up chart-testing
|
|
|
|
uses: helm/chart-testing-action@v2.0.1
|
|
|
|
|
|
|
|
- name: Run chart-testing (lint)
|
|
|
|
run: ct lint --target-branch=main --check-version-increment=false
|
|
|
|
|
2021-07-14 19:10:41 +00:00
|
|
|
create-release:
|
|
|
|
runs-on: ubuntu-latest
|
2021-07-21 00:06:56 +00:00
|
|
|
needs: helm-tests
|
2021-07-14 19:10:41 +00:00
|
|
|
steps:
|
2021-07-19 20:01:17 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2021-07-14 19:10:41 +00:00
|
|
|
- name: Install Helm
|
|
|
|
uses: azure/setup-helm@v1
|
|
|
|
with:
|
2021-07-20 07:15:33 +00:00
|
|
|
version: v3.4.1
|
2021-07-14 19:10:41 +00:00
|
|
|
|
|
|
|
- name: Run chart-releaser
|
|
|
|
uses: stefanprodan/helm-gh-pages@v1.4.1
|
|
|
|
with:
|
2021-07-20 19:49:37 +00:00
|
|
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
linting: off
|