mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
45e95c2217
* Make Kyverno CRDs a seperate Helm chart capable of being updated/deleted Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu> * Make E2E tests work with new chart Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu> * Seems Helm lint needs values.yaml Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu> * Can't use ct install for the CRDs because will end up getting uninstalled after test Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu> * Ensure helm release accounts for new CRD chart Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu> * Update CRD chart versions Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu> * Make CRD chart version match main kyverno chart version Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu> * Bump chart versions Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
49 lines
No EOL
1.1 KiB
YAML
49 lines
No EOL
1.1 KiB
YAML
name: helm-release
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- 'charts/kyverno-crds/Chart.yaml'
|
|
- 'charts/kyverno/Chart.yaml'
|
|
- '.github/workflows/helm-release.yaml'
|
|
|
|
jobs:
|
|
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
|
|
|
|
create-release:
|
|
runs-on: ubuntu-latest
|
|
needs: helm-tests
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@v1
|
|
with:
|
|
version: v3.4.1
|
|
|
|
- name: Run chart-releaser
|
|
uses: stefanprodan/helm-gh-pages@v1.4.1
|
|
with:
|
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
|
linting: off |