Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitubActions Docker issue #318

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ jobs:

- name: Install test dependencies
run: |
python3 -m pip install --constraint=.github/workflows/constraints.txt ansible 'molecule-plugins[docker]' docker netaddr
python3 -m pip install --constraint=.github/workflows/constraints.txt ansible 'molecule-plugins[podman]' podman netaddr
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding podman is not necessary


- name: Run Molecule tests
- name: Run Molecule tests with Podman
run: |
molecule reset
molecule test
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/tests_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jobs:
with:
path: "nextcloud.ansible-collection-nextcloud-admin"

- name: Clean docker cache
run: |
docker system prune --volumes -a -f

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -43,9 +39,9 @@ jobs:

- name: Install test dependencies
run: |
python3 -m pip install --constraint=.github/workflows/constraints.txt ansible 'molecule-plugins[docker]' docker netaddr
python3 -m pip install --constraint=.github/workflows/constraints.txt ansible 'molecule-plugins[podman]' podman netaddr

- name: Run Molecule tests
- name: Run Molecule tests with Podman
run: |
molecule reset
molecule test
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ role_name_check: 1
dependency:
name: galaxy
driver:
name: docker
name: podman
platforms:
- name: instance
image: "docker.io/geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest"
Expand Down
Loading