Merge test #1
46
.drone.yml
46
.drone.yml
@ -1,7 +1,24 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: master
|
name: check on test
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check playbook
|
||||||
|
commands:
|
||||||
|
- ansible-playbook -C playbook.yml
|
||||||
|
|
||||||
|
node:
|
||||||
|
target: generic
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: deploy to prod
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check playbook
|
- name: Check playbook
|
||||||
@ -11,20 +28,21 @@ steps:
|
|||||||
- name: Run playbook
|
- name: Run playbook
|
||||||
commands:
|
commands:
|
||||||
- ansible-playbook playbook.yml
|
- ansible-playbook playbook.yml
|
||||||
|
|
||||||
node:
|
node:
|
||||||
target: shell-scripts
|
target: shell-scripts
|
||||||
when:
|
|
||||||
branch:
|
trigger:
|
||||||
- master
|
event:
|
||||||
|
- promote
|
||||||
|
target:
|
||||||
|
- production
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: not master
|
name: deploy to test
|
||||||
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- test
|
|
||||||
- feature/*
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check playbook
|
- name: Check playbook
|
||||||
@ -37,3 +55,11 @@ steps:
|
|||||||
|
|
||||||
node:
|
node:
|
||||||
target: generic
|
target: generic
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
target:
|
||||||
|
- testing
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user