ci(images): add the molecule-controller image
ADR 0003 moves Molecule out of the ci image, so a ci bump for a tool only Lint uses stops selecting every scenario. This builds and publishes the image; nothing pins it yet (#431). It bakes requirements-molecule.lock (ansible-core, molecule, molecule-plugins[docker]) on the Python of .python-version and the collections of both requirements.yml files, and records their checksums in /opt/molecule-pins.sha256. Its last RUN checks the tool versions against the lock, the Docker driver, every pinned collection and the pin record, so a broken image fails its build. It has no image-smoke scenario: it is the controller of every scenario, and the full run of its pin pull request proves it; images/AGENTS.md records the exception. check_image_versions.py pins now checks the Python header of both locks and fails when their ansible-core pins differ, so Lint and Molecule judge the code with one ansible-core. The new requirements files stay off the selector's IGNORED list, so a bump there runs every scenario. Refs #477 Assisted-by: Claude Code
This commit is contained in:
1 parent
26c6026d1a
commit
fd448d7e9e
9 files changed
+1199
-28
No files matched your search
@@ -2,7 +2,8 @@ name: Images
|
||||
|
||||
# Builds the images under images/ with kaniko (osscontainertools fork, v1.28.6) and
|
||||
# pushes them to git.rkdr.net/mortis/<name>: the molecule
|
||||
# test targets (molecule-ubuntu2404, molecule-ubuntu2604) and the lint/build tooling (ci).
|
||||
# test targets (molecule-ubuntu2404, molecule-ubuntu2604), the lint/build tooling (ci) and
|
||||
# the Molecule controller (molecule-controller).
|
||||
#
|
||||
# Never on pull_request: a workflow file comes from the PR head, so a fork PR could
|
||||
# otherwise push to the registry. This workflow has no pull_request trigger, and the job
|
||||
@@ -44,6 +45,9 @@ on: # yamllint disable-line rule:truthy
|
||||
- 'requirements.yml'
|
||||
- 'extensions/molecule/requirements.yml'
|
||||
- '.pre-commit-config.yaml'
|
||||
# The molecule-controller image bakes these (images/molecule-controller/Dockerfile).
|
||||
- 'requirements-molecule.txt'
|
||||
- 'requirements-molecule.lock'
|
||||
- '.gitea/workflows/image.yml'
|
||||
workflow_dispatch: {}
|
||||
|
||||
@@ -90,6 +94,11 @@ jobs:
|
||||
subpath: ""
|
||||
dockerfile: images/ci/Dockerfile
|
||||
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||
- name: molecule-controller
|
||||
base: "0.1"
|
||||
subpath: ""
|
||||
dockerfile: images/molecule-controller/Dockerfile
|
||||
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
|
||||
container:
|
||||
image: ${{ matrix.job_image }}
|
||||
# Keeps a runaway build from taking the whole runner down with it.
|
||||
|
||||
Reference in new issue
Block a user