useful-scripts-helpdesk/.drone.yml

40 lines
550 B
YAML
Raw Normal View History

2022-01-01 07:18:03 +03:00
---
kind: pipeline
type: exec
name: master
2022-01-01 07:18:03 +03:00
steps:
- name: Check playbook
commands:
- ansible-playbook -C playbook.yml
- name: Run playbook
commands:
- ansible-playbook playbook.yml
node:
target: shell-scripts
when:
branch:
- master
---
kind: pipeline
type: exec
name: not master
when:
branch:
- test
- feature/*
steps:
- name: Check playbook
commands:
- ansible-playbook -C playbook.yml
- name: Run playbook
commands:
- ansible-playbook playbook.yml
node:
target: generic