Skip to content

Commit

Permalink
Work around variable interpolation bug in molecule-docker by downgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Nov 11, 2022
1 parent b93fa01 commit c0bd3b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ jobs:
matrix:
scenario:
- default
molecule-image:
from-image:
- centos:7
- ubuntu:20.04
galaxy-version:
- '21.01'
- '22.01'
Expand All @@ -28,13 +29,16 @@ jobs:
with:
python-version: '3.x'

# The molecule-docker pin can be removed after molecule-docker>2.1.0 is released, see:
# https://github.com/ansible-community/molecule/issues/3733
- name: Install dependencies
run: pip3 install molecule[docker] ansible-core
run: pip3 install molecule[docker] ansible-core 'molecule-docker!=2.1.0'

- name: Run molecule
run: molecule test -s ${{ matrix.scenario }}
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
ANSIBLE_STDOUT_CALLBACK: yaml
FROM_IMAGE: '${{ matrix.from-image }}'
GALAXY_COMMIT_ID: '${{ matrix.galaxy-version }}'
2 changes: 0 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ driver:
platforms:
- name: galaxy-scenario-default
image: ${FROM_IMAGE:-centos:7}
#command: /usr/lib/systemd/systemd
# override default sleep loop, use Dockerfile CMD
command: ""
volumes:
Expand All @@ -20,7 +19,6 @@ platforms:
pre_build_image: false
provisioner:
name: ansible
log: true
env:
GALAXY_COMMIT_ID: ${GALAXY_COMMIT_ID:-dev}
verifier:
Expand Down

0 comments on commit c0bd3b3

Please sign in to comment.