Merge pull request '.drone.yml aktualisiert' (#7) from rulrich-patch-1 into rulrich-patch-3
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
Reviewed-on: #7
This commit is contained in:
commit
95e2928490
1 changed files with 14 additions and 26 deletions
40
.drone.yml
40
.drone.yml
|
|
@ -7,19 +7,19 @@ trigger:
|
||||||
- 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
|
||||||
username:
|
# username:
|
||||||
from_secret: drone_ansible_user
|
# from_secret: drone_ansible_user
|
||||||
key:
|
# key:
|
||||||
from_secret: drone_ansible_ssh_private_key
|
# from_secret: drone_ansible_ssh_private_key
|
||||||
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
|
||||||
|
|
@ -28,8 +28,6 @@ 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:
|
||||||
|
|
@ -57,8 +55,6 @@ 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
|
||||||
|
|
@ -74,14 +70,8 @@ steps:
|
||||||
content_type: application/json
|
content_type: application/json
|
||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
"text": "Pull Request"
|
"text": "${DRONE_REPO} build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**"
|
||||||
}
|
}
|
||||||
# ${DRONE_REPO} build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**
|
|
||||||
# {
|
|
||||||
# "owner": "$DRONE_REPO_OWNER",
|
|
||||||
# "repo": "$DRONE_REPO_NAME",
|
|
||||||
# "status": "$DRONE_BUILD_STATUS"
|
|
||||||
# }
|
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
|
|
@ -101,8 +91,6 @@ steps:
|
||||||
private_key:
|
private_key:
|
||||||
from_secret: drone_ansible_ssh_private_key
|
from_secret: drone_ansible_ssh_private_key
|
||||||
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
ssh_extra_args: "-o StrictHostKeyChecking=no"
|
||||||
# requirements: requirements.txt
|
|
||||||
# galaxy: requirements.yml
|
|
||||||
diff: true
|
diff: true
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue