Merge pull request 'rulrich-patch-1' (#3) from rulrich-patch-1 into main
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #3
This commit is contained in:
commit
af94db2aa8
1 changed files with 30 additions and 23 deletions
53
.drone.yml
53
.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
|
||||||
|
|
@ -63,21 +63,28 @@ steps:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
# - name: webhook-pr
|
- name: webhook-pr
|
||||||
# image: plugins/webhook
|
image: plugins/webhook
|
||||||
# settings:
|
settings:
|
||||||
# username:
|
username:
|
||||||
# from_secret: mattermost_username
|
from_secret: mattermost_username
|
||||||
# password:
|
password:
|
||||||
# from_secret: mattermost_password
|
from_secret: mattermost_password
|
||||||
# urls: https://chat.host-ranger.ch/hooks/9e39cidaqt8d7f9hd4gmutkngr
|
urls: https://chat.host-ranger.ch/hooks/9e39cidaqt8d7f9hd4gmutkngr
|
||||||
# content_type: application/json
|
content_type: application/json
|
||||||
# template: |
|
template: |
|
||||||
|
`${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**
|
||||||
# {
|
# {
|
||||||
# "owner": "$DRONE_REPO_OWNER",
|
# "owner": "$DRONE_REPO_OWNER",
|
||||||
# "repo": "$DRONE_REPO_NAME",
|
# "repo": "$DRONE_REPO_NAME",
|
||||||
# "status": "$DRONE_BUILD_STATUS"
|
# "status": "$DRONE_BUILD_STATUS"
|
||||||
# }
|
# }
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
||||||
|
- success
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
- name: Apply Playbook
|
- name: Apply Playbook
|
||||||
image: plugins/ansible
|
image: plugins/ansible
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue