Add drone
This commit is contained in:
parent
3e39cbb376
commit
5a535d3287
25
drone.yml
Normal file
25
drone.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: check ansible syntax
|
||||||
|
image: plugins/ansible:1
|
||||||
|
settings:
|
||||||
|
playbook: deployment/todo-setup.yml
|
||||||
|
inventory: deployment/hosts
|
||||||
|
syntax_check: true
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
- name: apply ansible playbook
|
||||||
|
image: plugins/ansible:1
|
||||||
|
settings:
|
||||||
|
playbook: deployment/todo-setup.yml
|
||||||
|
inventory: deployment/hosts
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- production
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
Loading…
Reference in New Issue
Block a user