Merge pull request 'Merge test' (#1) from test into master
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

Reviewed-on: http://git.lulzette.ru/lulzette/useful-scripts-helpdesk/pulls/1
This commit is contained in:
lulzette 2022-01-03 17:27:23 +03:00
commit 436c38d8bc
2 changed files with 52 additions and 2 deletions

View File

@ -1,7 +1,24 @@
---
kind: pipeline
type: exec
name: default
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,5 +28,38 @@ steps:
- name: Run playbook
commands:
- ansible-playbook playbook.yml
node:
target: shell-scripts
trigger:
event:
- promote
target:
- production
---
kind: pipeline
type: exec
name: deploy to test
steps:
- name: Check playbook
commands:
- ansible-playbook -C playbook.yml
- name: Run playbook
commands:
- ansible-playbook playbook.yml
node:
target: generic
trigger:
event:
- promote
target:
- testing

View File

@ -1,5 +1,5 @@
<html>
<body>
<a href="otp-bash.tw1.ru/basic.sh">wget -q -O - otp-bash.tw1.ru/basic.sh | bash</a>
<a href="basic.sh">wget -q -O - otp-bash.tw1.ru/basic.sh | bash</a>
</body>
</html>