Compare commits
No commits in common. "95e292849026ce5d71d68f8cb6a43a6f2617a00c" and "a676227ca9156c11a1cf86ad0192cc07c09e1cdd" have entirely different histories.
95e2928490
...
a676227ca9
1 changed files with 26 additions and 14 deletions
40
.drone.yml
40
.drone.yml
|
|
@ -7,19 +7,19 @@ trigger:
|
|||
- main
|
||||
|
||||
steps:
|
||||
# - name: check SSH
|
||||
# image: appleboy/drone-ssh
|
||||
# settings:
|
||||
# host:
|
||||
# - test.band-on.com
|
||||
# username:
|
||||
# from_secret: drone_ansible_user
|
||||
# key:
|
||||
# from_secret: drone_ansible_ssh_private_key
|
||||
# port: 22
|
||||
# command_timeout: 2m
|
||||
# script:
|
||||
# - echo "Hello World"
|
||||
- name: check SSH
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
- test.band-on.com
|
||||
username:
|
||||
from_secret: drone_ansible_user
|
||||
key:
|
||||
from_secret: drone_ansible_ssh_private_key
|
||||
port: 22
|
||||
command_timeout: 2m
|
||||
script:
|
||||
- echo "Hello World"
|
||||
|
||||
- name: Syntax Check
|
||||
image: plugins/ansible:3
|
||||
|
|
@ -28,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:
|
||||
|
|
@ -55,6 +57,8 @@ steps:
|
|||
diff: true
|
||||
check: true
|
||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||
# requirements: requirements.txt
|
||||
# galaxy: requirements.yml
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
|
|
@ -70,8 +74,14 @@ steps:
|
|||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
"text": "${DRONE_REPO} build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**"
|
||||
"text": "Pull Request"
|
||||
}
|
||||
# ${DRONE_REPO} build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**
|
||||
# {
|
||||
# "owner": "$DRONE_REPO_OWNER",
|
||||
# "repo": "$DRONE_REPO_NAME",
|
||||
# "status": "$DRONE_BUILD_STATUS"
|
||||
# }
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
|
|
@ -91,6 +101,8 @@ steps:
|
|||
private_key:
|
||||
from_secret: drone_ansible_ssh_private_key
|
||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||
# requirements: requirements.txt
|
||||
# galaxy: requirements.yml
|
||||
diff: true
|
||||
when:
|
||||
branch:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue