Commit Graph
6 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 78ae47bf11 G8: bump ericomeehan.gitea for the Actions cache; document it
Picks up DevOps/ansible-role-gitea@96e5b92, which turns on the runner's
built-in cache server with a persistent volume. runner.md describes the
cache and how to troubleshoot or clear it, and corrects the DinD CPU limit
to the 750m now set for the current runner node. adding-ci.md shows how a
workflow uses actions/cache, pinned by SHA.

Refs #56

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:24:30 -05:00
claudeandClaude Opus 5.5 9cfa07ba1c G6: bump 8 roles for ansible-lint CI callers; document rollout
Bumps debian, libvirt-guest, ingress-nginx, grafana, nextcloud, minio,
tor-controller and mediawiki to commits that add only a manual-only
lint caller, a lint baseline and (tor-controller, mediawiki) a fixed
role name in tests/test.yml. Nothing these roles deploy changes.

adding-ci.md: rollout table, test results, and a note not to baseline
syntax-check findings.

Refs DevOps/software-infrastructure#54

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:28:19 -05:00
claudeandClaude Opus 5.5 69e12d205f G5: role lint also resolves the role's bare name
Galaxy-skeleton tests/test.yml files name the role either by its repo
name (ansible-role-x) or its bare name (x). ansible-role-eom uses the
bare name, which made syntax-check fail, and syntax-check can't be
baselined. Link both aliases to the linted copy. Update the documented
baseline command and the test table.

Refs DevOps/software-infrastructure#53

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:16:36 -05:00
claudeandClaude Opus 5.5 8efe539bf1 G5: exclude .gitea/ from role lint; document baseline granularity
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>
2026-11-15 18:24:29 -05:00
claudeandClaude Opus 5.5 84dbed9d8c G7: helm lint per values set, render-defaults input, fail on empty render
- 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>
2026-11-15 18:17:22 -05:00
claudeandClaude Opus 5.5 1dab77645e G2: reusable lint workflows for Ansible roles, Helm charts and Dockerfiles
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>
2026-11-14 18:49:25 -05:00