Merge test #1
26
.drone.yml
26
.drone.yml
@ -1,7 +1,7 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: default
|
||||
name: master
|
||||
|
||||
steps:
|
||||
- name: Check playbook
|
||||
@ -13,3 +13,27 @@ steps:
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user