mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-15 20:20:22 +00:00
feat: lint Helm charts for Artifact Hub (#6758)
Signed-off-by: Liang Deng <283304489@qq.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
b4a4e3a4f3
commit
0be5255be9
2 changed files with 24 additions and 0 deletions
12
.github/workflows/helm-release.yaml
vendored
12
.github/workflows/helm-release.yaml
vendored
|
@ -24,6 +24,18 @@ jobs:
|
||||||
- name: Run chart-testing (lint)
|
- name: Run chart-testing (lint)
|
||||||
run: ct lint --target-branch=main --check-version-increment=false
|
run: ct lint --target-branch=main --check-version-increment=false
|
||||||
|
|
||||||
|
linter-artifacthub:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: artifacthub/ah
|
||||||
|
options: --user root
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
|
||||||
|
- name: Run ah lint
|
||||||
|
working-directory: ./charts/
|
||||||
|
run: ah lint
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: helm-tests
|
needs: helm-tests
|
||||||
|
|
12
.github/workflows/helm-test.yaml
vendored
12
.github/workflows/helm-test.yaml
vendored
|
@ -42,3 +42,15 @@ jobs:
|
||||||
- name: Debug failure
|
- name: Debug failure
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: ./.github/actions/kyverno-logs
|
uses: ./.github/actions/kyverno-logs
|
||||||
|
|
||||||
|
linter-artifacthub:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: artifacthub/ah
|
||||||
|
options: --user root
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
|
||||||
|
- name: Run ah lint
|
||||||
|
working-directory: ./charts/
|
||||||
|
run: ah lint
|
||||||
|
|
Loading…
Add table
Reference in a new issue