Compare commits
4 Commits
25c2af3139
...
436c38d8bc
Author | SHA1 | Date | |
---|---|---|---|
436c38d8bc | |||
f72185ba59 | |||
6147b44d34 | |||
18e8163a7a |
52
.drone.yml
52
.drone.yml
@ -1,7 +1,24 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
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:
|
steps:
|
||||||
- name: Check playbook
|
- name: Check playbook
|
||||||
@ -11,5 +28,38 @@ 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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user