mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
24 lines
853 B
YAML
24 lines
853 B
YAML
---
|
|
version: "3"
|
|
|
|
vars:
|
|
CT_IMAGE: quay.io/helmpack/chart-testing:v3.6.0
|
|
REPO_CONFIG_FILE: .ci/repo-config.yaml
|
|
CT_CONFIG_FILE: .ci/ct/ct.yaml
|
|
CHARTS_EXCLUDED_FROM_LINT:
|
|
sh: yq eval '.excluded-charts-lint | join(",")' {{.REPO_CONFIG_FILE}}
|
|
CHARTS_EXCLUDED_FROM_INSTALL:
|
|
sh: yq eval '.excluded-charts-install | join(",")' {{.REPO_CONFIG_FILE}}
|
|
|
|
tasks:
|
|
lint:
|
|
desc: Run ct-lint on charts
|
|
cmds:
|
|
- docker run --rm -it --workdir=/data --volume $(pwd):/data {{.CT_IMAGE}} ct lint --config {{.CT_CONFIG_FILE}} --excluded-charts "{{.CHARTS_EXCLUDED_FROM_LINT}}"
|
|
silent: true
|
|
|
|
lint-all:
|
|
desc: Run ct-lint on all charts
|
|
cmds:
|
|
- docker run --rm -it --workdir=/data --volume $(pwd):/data {{.CT_IMAGE}} ct lint --config {{.CT_CONFIG_FILE}} --all --excluded-charts "{{.CHARTS_EXCLUDED_FROM_LINT}}"
|
|
silent: true
|