This commit is contained in:
parent
3a900a7c9c
commit
6580b5ee34
1 changed files with 9 additions and 8 deletions
17
.drone.yml
17
.drone.yml
|
|
@ -4,14 +4,15 @@ type: docker
|
|||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
- main
|
||||
|
||||
steps:
|
||||
- name: check SSH
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
- test.band-on.com
|
||||
- test.band-on.com
|
||||
- band-on.com
|
||||
username:
|
||||
from_secret: drone_ansible_user
|
||||
key:
|
||||
|
|
@ -19,7 +20,7 @@ steps:
|
|||
port: 22
|
||||
command_timeout: 2m
|
||||
script:
|
||||
- echo "Hello World"
|
||||
- echo "Hello World"
|
||||
|
||||
- name: Syntax Check
|
||||
image: plugins/ansible:3
|
||||
|
|
@ -28,8 +29,6 @@ steps:
|
|||
playbook: playbook.yml
|
||||
inventory: hosts
|
||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||
# requirements: requirements.txt
|
||||
# galaxy: requirements.yml
|
||||
syntax_check: true
|
||||
when:
|
||||
event:
|
||||
|
|
@ -42,6 +41,8 @@ steps:
|
|||
when:
|
||||
event:
|
||||
- pull_request
|
||||
status:
|
||||
- success
|
||||
|
||||
- name: Show Diff and Check
|
||||
image: plugins/ansible:3
|
||||
|
|
@ -57,11 +58,11 @@ steps:
|
|||
diff: true
|
||||
check: true
|
||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||
# requirements: requirements.txt
|
||||
# galaxy: requirements.yml
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
status:
|
||||
- success
|
||||
|
||||
- name: webhook-pr
|
||||
image: plugins/webhook
|
||||
|
|
@ -87,7 +88,7 @@ steps:
|
|||
- failure
|
||||
- success
|
||||
event:
|
||||
- pull_request
|
||||
- pull_request
|
||||
|
||||
- name: Apply Playbook
|
||||
image: plugins/ansible:3
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue