mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 17:22:41 +01:00
2.1 KiB
2.1 KiB
hangouts
Require the Google Hangouts Chat recipe in your deploy.php
file:
require 'contrib/chat.php';
Add hook on deploy:
before('deploy', 'chat:notify');
Configuration
chat_webhook
– chat incoming webhook url, requiredchat_title
– the title of your notification card, default{{application}}
chat_subtitle
– the subtitle of your card, default{{hostname}}
chat_favicon
– an image for the header of your card, defaulthttp://{{hostname}}/favicon.png
chat_line1
– first line of the text in your card, default:{{branch}}
chat_line2
– second line of the text in your card, default:{{stage}}
Usage
If you want to notify only about beginning of deployment add this line only:
before('deploy', 'chat:notify');
If you want to notify about successful end of deployment add this too:
after('deploy:success', 'chat:notify:success');
If you want to notify about failed deployment add this too:
after('deploy:failed', 'chat:notify:failure');
- Config
- Tasks
chat:notify
— Notifying Google Hangouts Chatchat:notify:success
— Notifying Google Hangouts Chat about deploy finishchat:notify:failure
Config
chat_title
Title of project
chat_subtitle
favicon
If 'favicon' is set Google Hangouts Chat will decorate your card with an image.
chat_line1
Deploy messages