Skip to content

Commit

Permalink
ci: add schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
resmo committed Sep 11, 2023
1 parent d36db22 commit 6ad5cb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ name: CI
- main
tags:
- "v*"
schedule:
- cron: 57 7 * * 2 # Run weekly

defaults:
run:
Expand Down Expand Up @@ -72,7 +74,7 @@ jobs:
python-version: "3.x"

- name: Install test dependencies.
run: pip3 install ansible molecule[docker] docker
run: pip3 install ansible molecule molecule-docker docker

- name: Run Molecule tests.
run: molecule test
Expand Down
5 changes: 3 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ driver:
name: docker
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest"
image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
provisioner:
Expand Down

0 comments on commit 6ad5cb5

Please sign in to comment.