You've already forked ansible-role-common
Reformat - need notifications
This commit is contained in:
80
.drone.yml
80
.drone.yml
@@ -1,45 +1,43 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
pipeline:
|
||||||
name: default
|
notify:
|
||||||
|
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 ]
|
||||||
|
|
||||||
notify:
|
steps:
|
||||||
image: drillster/drone-email
|
- name: Test with Molecule
|
||||||
host: mail.guise.net.nz
|
image: python:3.8
|
||||||
username:
|
volumes:
|
||||||
from_secret: EMAIL_USER
|
- name: dockersock
|
||||||
password:
|
path: /var/run
|
||||||
from_secret: EMAIL_PASS
|
commands:
|
||||||
from: drone@guise.net.nz
|
- apt-get update && apt-get install -y rsync
|
||||||
when:
|
- python3 -m pip install --upgrade "ansible<2.10.0" \
|
||||||
status: [ changed, failure ]
|
flake8 \
|
||||||
|
"molecule[docker]==3.4.0"
|
||||||
|
- 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
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: docker
|
||||||
|
image: docker:dind
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Test with Molecule
|
|
||||||
image: python:3.8
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
temp: {}
|
||||||
commands:
|
|
||||||
- apt-get update && apt-get install -y rsync
|
|
||||||
- python3 -m pip install --upgrade "ansible<2.10.0" \
|
|
||||||
flake8 \
|
|
||||||
"molecule[docker]==3.4.0"
|
|
||||||
- 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
|
|
||||||
|
|
||||||
services:
|
|
||||||
- name: docker
|
|
||||||
image: docker:dind
|
|
||||||
privileged: true
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
temp: {}
|
|
||||||
Reference in New Issue
Block a user