Добавил деплой на тест и прод
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Lulzette 2022-01-03 14:23:41 +00:00
parent 6147b44d34
commit f72185ba59

View File

@ -1,7 +1,24 @@
---
kind: pipeline
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:
- name: Check playbook
@ -11,20 +28,21 @@ steps:
- name: Run playbook
commands:
- ansible-playbook playbook.yml
node:
target: shell-scripts
when:
branch:
- master
trigger:
event:
- promote
target:
- production
---
kind: pipeline
type: exec
name: not master
when:
branch:
- test
- feature/*
name: deploy to test
steps:
- name: Check playbook
@ -37,3 +55,11 @@ steps:
node:
target: generic
trigger:
event:
- promote
target:
- testing