Pin molecule and its Docker driver in requirements-dev.txt and bake them, with the driver's collection, into the ci image. The Molecule job runs docker run on the pinned ci image with the Docker socket and the checkout mounted at the same path, as the runner user. A pull request whose pins differ from the image installs its own pins first, so a core bump runs its scenarios on the new core. gitea_runner no longer installs the molecule venv and collections. Closes #225 Assisted-by: Claude Code
14 lines
720 B
YAML
14 lines
720 B
YAML
---
|
|
# Collections the roles of this Collection call (the dependencies of galaxy.yml, pinned exactly).
|
|
# galaxy.yml holds the lower bounds a consumer needs; this file holds the versions CI tests
|
|
# against. One file feeds every consumer, so they cannot drift apart:
|
|
# - the ci image (images/ci/Dockerfile) bakes it into /opt/collections for Lint and Molecule;
|
|
# - the Molecule job (.gitea/workflows/molecule.yml) installs it itself when a pull request changes it;
|
|
# - scripts/dev-setup.sh installs it into .ansible/collections for local lint.
|
|
# Renovate (renovate.json, ansible-galaxy manager) bumps these pins.
|
|
collections:
|
|
- name: community.general
|
|
version: 14.0.1
|
|
- name: ansible.posix
|
|
version: 2.2.2
|