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:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: check SSH
|
- name: check SSH
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
- test.band-on.com
|
- test.band-on.com
|
||||||
- band-on.com
|
|
||||||
username:
|
username:
|
||||||
from_secret: drone_ansible_user
|
from_secret: drone_ansible_user
|
||||||
key:
|
key:
|
||||||
|
|
@ -20,7 +19,7 @@ steps:
|
||||||
port: 22
|
port: 22
|
||||||
command_timeout: 2m
|
command_timeout: 2m
|
||||||
script:
|
script:
|
||||||
- echo "Hello World"
|
- echo "Hello World"
|
||||||
|
|
||||||
- name: Syntax Check
|
- name: Syntax Check
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
|
|
@ -29,6 +28,8 @@ steps:
|
||||||
playbook: playbook.yml
|
playbook: playbook.yml
|
||||||
inventory: hosts
|
inventory: hosts
|
||||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||||
|
# requirements: requirements.txt
|
||||||
|
# galaxy: requirements.yml
|
||||||
syntax_check: true
|
syntax_check: true
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
|
@ -41,8 +42,6 @@ steps:
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
status:
|
|
||||||
- success
|
|
||||||
|
|
||||||
- name: Show Diff and Check
|
- name: Show Diff and Check
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
|
|
@ -58,11 +57,11 @@ steps:
|
||||||
diff: true
|
diff: true
|
||||||
check: true
|
check: true
|
||||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||||
|
# requirements: requirements.txt
|
||||||
|
# galaxy: requirements.yml
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
status:
|
|
||||||
- success
|
|
||||||
|
|
||||||
- name: webhook-pr
|
- name: webhook-pr
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
|
|
@ -88,7 +87,7 @@ steps:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
- name: Apply Playbook
|
- name: Apply Playbook
|
||||||
image: plugins/ansible:3
|
image: plugins/ansible:3
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue