This commit is contained in:
2022-03-11 14:56:09 +13:00
parent 36f3e53eec
commit 6ba2eca5c3

View File

@@ -3,29 +3,30 @@ kind: pipeline
name: default
steps:
- name: Test with Molecule
image: guisea/ansible-molecule:latest
volumes:
- name: dockersock
path: /var/run
commands:
- mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME}
- python3 --version
- ansible --version
- molecule --version
- molecule test
- name: notify by email
image: drillster/drone-email
host: mail.guise.net.nz
username:
from_secret: EMAIL_USER
password:
from_secret: EMAIL_PASS
from: drone@guise.net.nz
when:
status: [ changed, failure ]
- name: Test with Molecule
image: guisea/ansible-molecule:latest
volumes:
- name: dockersock
path: /var/run
commands:
- mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME}
- python3 --version
- ansible --version
- molecule --version
- molecule test
- name: notify by email
image: drillster/drone-email
host: mail.guise.net.nz
username:
from_secret: EMAIL_USER
password:
from_secret: EMAIL_PASS
from: drone@guise.net.nz
when:
status: [ changed, failure ]
services:
- name: docker