Merge test #1
26
.drone.yml
26
.drone.yml
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: default
|
name: master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check playbook
|
- name: Check playbook
|
||||||
@ -13,3 +13,27 @@ steps:
|
|||||||
- ansible-playbook playbook.yml
|
- ansible-playbook playbook.yml
|
||||||
node:
|
node:
|
||||||
target: shell-scripts
|
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