Update CI

This commit is contained in:
2023-10-05 14:32:13 +13:00
parent 00b1548103
commit 23b9664ede
2 changed files with 20 additions and 2 deletions

18
.woodpecker.yml Normal file
View File

@@ -0,0 +1,18 @@
matrix:
MOLECULE_DISTRO:
- centos7
- almalinux8
steps:
build:
image: guisea/ansible-molecule
pull: true
environment:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks
EPEL_MIRROR_URL: https://mirrors.guise.net.nz/epel
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- molecule test --all
when:
event: push

View File

@@ -4,8 +4,8 @@ dependency:
driver:
name: docker
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
- name: molecule-${MOLECULE_DISTRO:-centos7}
image: "cybercinch/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro