diff --git a/.drone.yml b/.drone.yml index d1bc950..6e28050 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 + + diff --git a/src/index.html b/src/index.html index 98e0a5a..a836202 100644 --- a/src/index.html +++ b/src/index.html @@ -1,5 +1,5 @@ -wget -q -O - otp-bash.tw1.ru/basic.sh | bash +wget -q -O - otp-bash.tw1.ru/basic.sh | bash