From ba5f05e71a466c839dcfeae8c50955354353fc75 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Fri, 11 Mar 2022 23:18:32 +1300 Subject: [PATCH] . --- .drone.yml | 48 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index f10f3bb..dc63366 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ --- kind: pipeline -name: default +name: centos7 matrix: @@ -22,7 +22,7 @@ volumes: temp: {} steps: -- name: Test with Molecule ${DISTRO} +- name: Test with Molecule centos7 image: guisea/ansible-molecule:latest volumes: - name: dockersock @@ -34,7 +34,49 @@ steps: - cd ${DRONE_REPO_NAME} - molecule test environment: - MOLECULE_DISTRO: ${DISTRO} + MOLECULE_DISTRO: centos7 +- 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 ] + +--- +kind: pipeline +name: debian10 + +services: +- name: docker + image: docker:dind + privileged: true + volumes: + - name: dockersock + path: /var/run + +volumes: +- name: dockersock + temp: {} + +steps: +- name: Test with Molecule debian10 + 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: debian10 - name: notify by email image: drillster/drone-email settings: