Add drone file
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
9f89ebe3fc
commit
a0cf393b9b
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: lintPlaybooks
|
||||||
|
image: geerlingguy/docker-ubuntu1804-ansible:testing
|
||||||
|
commands:
|
||||||
|
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-playbook --syntax-check --list-tasks"
|
||||||
|
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-lint"
|
||||||
|
|
||||||
|
- name: sendtoMattermost
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls: https://chat.copyworld.com.au/hooks/dyj7zxukn7nopd8sy4xqxtj3mc
|
||||||
|
content_type: application/json
|
||||||
|
template: |
|
||||||
|
{
|
||||||
|
"text": "**owner:** {{ repo.owner }}
|
||||||
|
**repo:** {{repo.name}}/{{build.branch}}
|
||||||
|
**status:** {{#success build.status}}:white_check_mark:Build #{{build.number}} successful :white_check_mark:
|
||||||
|
{{else}}
|
||||||
|
:x:Build #{{build.number}} failed :x:
|
||||||
|
See more info here {{build.link}}{{/success}}"
|
||||||
|
}
|
||||||
|
debug: true
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
Loading…
Reference in New Issue