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>