Files
ansible-role-common/.drone.yml

164 lines
3.1 KiB
YAML
Raw Normal View History

2022-03-11 15:29:57 +13:00
---
2022-03-14 14:35:54 +13:00
kind: pipeline
name: Test on centos7
services:
- image: docker:dind
name: docker
privileged: true
volumes:
name: dockersock
path: /var/run
steps:
2022-03-14 14:42:46 +13:00
- commands:
- sleep 10
- mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME}
- molecule test
environment:
MOLECULE_DISTRO: centos7
image: guisea/ansible-molecule:latest
name: Test on centos7
volumes:
name: dockersock
path: /var/run
- image: drillster/drone-email
name: notify by email
settings:
from: drone@guise.net.nz
host: mail.guise.net.nz
password:
from_secret: EMAIL_PASS
username:
from_secret: EMAIL_USER
when:
status:
- changed
- failure
2022-03-14 14:35:54 +13:00
type: docker
volumes:
name: dockersock
temp: {}
---
kind: pipeline
name: Test on centos8
services:
- image: docker:dind
name: docker
privileged: true
2022-03-11 15:55:18 +13:00
volumes:
2022-03-14 14:26:47 +13:00
name: dockersock
2022-03-14 14:35:54 +13:00
path: /var/run
steps:
2022-03-14 14:42:46 +13:00
- commands:
- sleep 10
- mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME}
- molecule test
environment:
MOLECULE_DISTRO: centos8
image: guisea/ansible-molecule:latest
name: Test on centos8
volumes:
name: dockersock
path: /var/run
- image: drillster/drone-email
name: notify by email
settings:
from: drone@guise.net.nz
host: mail.guise.net.nz
password:
from_secret: EMAIL_PASS
username:
from_secret: EMAIL_USER
when:
status:
- changed
- failure
2022-03-14 14:35:54 +13:00
type: docker
volumes:
name: dockersock
temp: {}
---
kind: pipeline
name: Test on debian10
services:
- image: docker:dind
name: docker
privileged: true
2022-03-11 15:10:08 +13:00
volumes:
2022-03-14 14:26:47 +13:00
name: dockersock
2022-03-14 14:35:54 +13:00
path: /var/run
steps:
2022-03-14 14:42:46 +13:00
- commands:
- sleep 10
- mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME}
- molecule test
environment:
MOLECULE_DISTRO: debian10
image: guisea/ansible-molecule:latest
name: Test on debian10
volumes:
name: dockersock
path: /var/run
- image: drillster/drone-email
name: notify by email
settings:
from: drone@guise.net.nz
host: mail.guise.net.nz
password:
from_secret: EMAIL_PASS
username:
from_secret: EMAIL_USER
when:
status:
- changed
- failure
2022-03-14 14:35:54 +13:00
type: docker
volumes:
name: dockersock
temp: {}
---
kind: pipeline
name: Test on debian11
services:
- image: docker:dind
name: docker
privileged: true
2022-03-11 23:18:32 +13:00
volumes:
2022-03-14 14:26:47 +13:00
name: dockersock
2022-03-14 14:35:54 +13:00
path: /var/run
steps:
2022-03-14 14:42:46 +13:00
- commands:
- sleep 10
- mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME}
- molecule test
environment:
MOLECULE_DISTRO: debian11
image: guisea/ansible-molecule:latest
name: Test on debian11
volumes:
name: dockersock
path: /var/run
- image: drillster/drone-email
name: notify by email
settings:
from: drone@guise.net.nz
host: mail.guise.net.nz
password:
from_secret: EMAIL_PASS
username:
from_secret: EMAIL_USER
when:
status:
- changed
- failure
2022-03-14 14:35:54 +13:00
type: docker
volumes:
name: dockersock
temp: {}