ci(images): bake the pinned collections into the ci image
Add requirements.yml, a Kamino-owned file with exact pins for the collections the roles call (community.general 14.0.0, ansible.posix 2.2.2), and install it into /opt/collections of the ci image (#118). Lint sets ANSIBLE_COLLECTIONS_PATH to it, so ansible-lint --offline resolves the modules and mock_modules is dropped. The file joins /opt/ci-pins.sha256: a pull request that changes a pin installs the collections for its own run, as it does for requirements-dev.txt. mock_roles stays (step 5 of #118). The install scopes ANSIBLE_COLLECTIONS_PATH to its target: ansible-galaxy skips a collection it finds elsewhere on the path as already installed, so the image would otherwise miss any that the build host happens to have. Image input: ci 0.2.15 -> 0.2.16 (one bump for this change and the ruff and shellcheck hooks of #112, which are also baked into the image). requirements.yml is added to the image.yml push paths so that a pin change rebuilds the image. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
1 parent
697e4b6092
commit
8fb7148129
11 files changed
+72
-34
No files matched your search
@@ -52,6 +52,7 @@ build_ignore:
|
||||
- renovate.json
|
||||
- ruff.toml
|
||||
- requirements-dev.txt
|
||||
- requirements.yml
|
||||
- gitleaks-report.json
|
||||
- importer_result.json
|
||||
- 'roles/*/molecule'
|
||||
|
||||
Reference in new issue
Block a user