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