--- kind: pipeline name: default matrix: DISTRO: - centos7 - debian10 - debian11 services: - name: docker image: docker:dind privileged: true volumes: - name: dockersock path: /var/run volumes: - name: dockersock temp: {} steps: - name: Test with Molecule ${DISTRO} image: guisea/ansible-molecule:latest volumes: - name: dockersock path: /var/run commands: - sleep 10 # give docker enough time to start - mkdir ${DRONE_REPO_NAME} - rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME} - cd ${DRONE_REPO_NAME} - molecule test environment: MOLECULE_DISTRO: ${DISTRO} - name: notify by email image: drillster/drone-email settings: host: mail.guise.net.nz username: from_secret: EMAIL_USER password: from_secret: EMAIL_PASS from: drone@guise.net.nz when: status: [ changed, failure ]