diff --git a/.woodpecker/cron.yml b/.woodpecker/cron.yml new file mode 100644 index 0000000..a426f9c --- /dev/null +++ b/.woodpecker/cron.yml @@ -0,0 +1,27 @@ +matrix: + include: + - MOLECULE_DISTRO: centos7 + - MOLECULE_DISTRO: almalinux8 + - MOLECULE_DISTRO: centos7 + MOLECULE_SCENARIO: fixed-mirror + - MOLECULE_DISTRO: almalinux8 + MOLECULE_SCENARIO: fixed-mirror +steps: + test: + name: Test on ${MOLECULE_DISTRO} + image: guisea/ansible-molecule + pull: true + environment: + PY_COLORS: '1' + ANSIBLE_FORCE_COLOR: '1' + volumes: + - /var/run/docker.sock:/var/run/docker.sock + commands: + - molecule test --scenario-name ${MOLECULE_SCENARIO:-default} + secrets: [ auth_duo_host, + auth_duo_ikey, + auth_duo_skey, + auth_duo_mirror_url ] + when: + event: + - cron diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index cd7b9bd..0fdd1be 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,13 +1,7 @@ matrix: include: - MOLECULE_DISTRO: centos7 - MOLECULE_SCENARIO: default - - MOLECULE_DISTRO: centos7 - MOLECULE_SCENARIO: fixed-mirror - MOLECULE_DISTRO: almalinux8 - MOLECULE_SCENARIO: default - - MOLECULE_DISTRO: almalinux8 - MOLECULE_SCENARIO: fixed-mirror steps: test: name: Test on ${MOLECULE_DISTRO} diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index b9a1711..42fc7b7 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -4,7 +4,7 @@ dependency: driver: name: docker platforms: - - name: ${MOLECULE_DISTRO:-almalinux8}-role-auth-duo-${MOLECULE_SCENARIO} + - name: ${MOLECULE_DISTRO:-almalinux8}-role-auth-duo-${MOLECULE_SCENARIO:-default} command: ${MOLECULE_DOCKER_COMMAND:-""} image: "cybercinch/docker-${MOLECULE_DISTRO:-almalinux8}-ansible:latest" tmpfs: diff --git a/molecule/fixed-mirror/molecule.yml b/molecule/fixed-mirror/molecule.yml index 650ae91..ab3d800 100644 --- a/molecule/fixed-mirror/molecule.yml +++ b/molecule/fixed-mirror/molecule.yml @@ -4,7 +4,7 @@ dependency: driver: name: docker platforms: - - name: ${MOLECULE_DISTRO:-almalinux8}-role-auth-duo-${MOLECULE_SCENARIO} + - name: ${MOLECULE_DISTRO:-almalinux8}-role-auth-duo-${MOLECULE_SCENARIO:-default} command: ${MOLECULE_DOCKER_COMMAND:-""} image: "cybercinch/docker-${MOLECULE_DISTRO:-almalinux8}-ansible:latest" tmpfs: