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
11 lines
602 B
YAML
11 lines
602 B
YAML
---
|
|
# Collections the Molecule test harness itself calls, as opposed to the roles under test (those are
|
|
# in the requirements.yml at the repository root). The Docker driver of molecule-plugins runs
|
|
# community.docker modules in its own create and destroy playbooks, so every scenario needs it.
|
|
# The ci image (images/ci) bakes it into /opt/collections next to the root one; a pull request that
|
|
# changes it fails the image's pin check, so the Molecule job installs it itself.
|
|
# Renovate (renovate.json, ansible-galaxy manager) bumps this pin.
|
|
collections:
|
|
- name: community.docker
|
|
version: 5.4.0
|