todo/drone.yml
2021-11-14 19:55:05 +01:00

26 lines
443 B
YAML

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