ansible-lint was flagging callers' workflow files (yaml[truthy] on `on:`),
which actionlint already checks. Exclude .gitea/ in the reusable workflow
and in the documented baseline command. Note that .ansible-lint-ignore is
per file and rule, not per line.
Refs DevOps/software-infrastructure#53
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- reusable-helm-lint: new `render-defaults` input (default true) for charts
whose templates require values the defaults leave empty.
- Lint each values set, not only the defaults.
- Render to a named .yaml file and fail if nothing rendered; kubeconform
passes on empty input and skips files without a .yaml extension.
- docs/ci-cd/adding-ci.md: placeholder-values convention, G7 rollout table,
test results.
Refs DevOps/software-infrastructure#55
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three workflow_call workflows that run in the shared CI tools image (G1):
- reusable-ansible-role-lint: ansible-lint (which includes yamllint's
rules) on a copy of the role named as the playbooks use it, with the
repo name also resolvable for galaxy's skeleton tests/test.yml.
role-name is a warning; .ansible-lint-ignore baselines are honoured.
- reusable-helm-lint: helm lint, then helm template | kubeconform for
Kubernetes 1.31.2, with optional extra values files.
- reusable-dockerfile-lint: hadolint on every Dockerfile, threshold
warning by default.
docs/ci-cd/adding-ci.md has caller templates, inputs, the baseline
command, and what was and wasn't tested.
Tested locally by running each workflow's steps verbatim in a local build
of the tools image: ansible-role-gitea fails as-is (48 findings), passes
with a baseline and fails on a new bad task; helm-jamulus passes, a
missing-value template and an invalid Service fail; the tools Dockerfile
passes and an unpinned one fails. Not yet run on the runner, and
cross-repo uses: is untested. No callers added, so no runs start.
Refs DevOps/software-infrastructure#50
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>