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
|
- 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}**
|
`${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