2023-10-10 23:25:49 +13:00
|
|
|
matrix:
|
2023-10-12 16:48:11 +13:00
|
|
|
include:
|
|
|
|
|
- MOLECULE_DISTRO: centos7
|
|
|
|
|
- MOLECULE_DISTRO: almalinux8
|
2023-10-13 11:30:37 +13:00
|
|
|
|
2023-10-10 23:25:49 +13:00
|
|
|
steps:
|
|
|
|
|
test:
|
|
|
|
|
name: Test on ${MOLECULE_DISTRO}
|
|
|
|
|
image: guisea/ansible-molecule
|
|
|
|
|
pull: true
|
2023-10-13 09:19:33 +13:00
|
|
|
environment:
|
|
|
|
|
PY_COLORS: '1'
|
|
|
|
|
ANSIBLE_FORCE_COLOR: '1'
|
2023-10-10 23:25:49 +13:00
|
|
|
volumes:
|
2023-10-12 16:34:26 +13:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2023-10-10 23:25:49 +13:00
|
|
|
commands:
|
2023-10-13 10:45:33 +13:00
|
|
|
- molecule test --scenario-name ${MOLECULE_SCENARIO:-default}
|
2023-10-13 09:19:21 +13:00
|
|
|
secrets: [ auth_duo_host, auth_duo_ikey, auth_duo_skey, auth_duo_mirror_url ]
|
2023-10-10 23:25:49 +13:00
|
|
|
when:
|
2023-10-12 16:34:26 +13:00
|
|
|
event:
|
|
|
|
|
- push
|
|
|
|
|
- manual
|
2023-10-10 23:25:49 +13:00
|
|
|
depends_on:
|
|
|
|
|
- lint
|