This commit is contained in:
2022-03-11 23:18:32 +13:00
parent fddc6ee2a0
commit ba5f05e71a

View File

@@ -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: