This commit is contained in:
parent
9057689ab0
commit
e65fbd506d
1 changed files with 16 additions and 10 deletions
26
.drone.yml
26
.drone.yml
|
|
@ -64,21 +64,27 @@ steps:
|
|||
- pull_request
|
||||
|
||||
- name: webhook-pr
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
username:
|
||||
from_secret: mattermost_username
|
||||
password:
|
||||
from_secret: mattermost_password
|
||||
urls: https://chat.host-ranger.ch/hooks/9e39cidaqt8d7f9hd4gmutkngr
|
||||
content_type: application/json
|
||||
template: |
|
||||
`${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}**
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
username:
|
||||
from_secret: mattermost_username
|
||||
password:
|
||||
from_secret: mattermost_password
|
||||
urls: https://chat.host-ranger.ch/hooks/9e39cidaqt8d7f9hd4gmutkngr
|
||||
content_type: application/json
|
||||
template: |
|
||||
`${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
|
||||
- success
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
- name: Apply Playbook
|
||||
image: plugins/ansible
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue