Add images/ci-tools: one image with ansible 14.6.0 (core 2.21.6), ansible-lint, yamllint, helm 3.22.1, kubeconform, actionlint, hadolint, gitleaks and node 24 for JavaScript actions. Python tools are pinned in requirements.txt; binaries are pinned by version and the SHA-256 from each release's checksum file. VERSION starts at 1.0.0. Add a manual-only ci-tools-image workflow that builds and smoke-tests the image, and publishes an immutable version tag only when Eric enables CI_TOOLS_PUBLISH and adds a registry token (after S8 and P1). A sample job then uses the published image as its container. Tested on the workstation: image builds, every tool reports its pinned version, hadolint/actionlint pass on the new files, and syntax-check passes for gitea.yaml, ci-runner.yaml and prometheus.yaml inside it. Refs DevOps/software-infrastructure#49 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
421 B
Bash
Executable File
16 lines
421 B
Bash
Executable File
#!/bin/sh
|
|
# Print the version of every tool in the eom.dev CI tools image.
|
|
# Fails if any tool is missing, so it doubles as the image smoke test.
|
|
set -eu
|
|
echo "eom-ci-tools $(cat /etc/eom-ci-tools-version)"
|
|
ansible --version | head -n1
|
|
ansible-lint --version | head -n1
|
|
yamllint --version
|
|
helm version --short
|
|
kubeconform -v
|
|
actionlint -version | head -n1
|
|
hadolint --version
|
|
gitleaks version
|
|
node --version
|
|
git --version
|