diff --git a/.drone.yml b/.drone.yml index 9b8a899..c6e5bd1 100644 --- a/.drone.yml +++ b/.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