mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
3.1 KiB
3.1 KiB
yammer
Yammer recipe
Installing
Require yammer recipe in your deploy.php
file:
require 'contrib/yammer.php';
Add hook on deploy:
before('deploy', 'yammer:notify');
Configuration
yammer_url
– The URL to the message endpoint, default is https://www.yammer.com/api/v1/messages.jsonyammer_token
(required) – Yammer auth tokenyammer_group_id
(required) - Group IDyammer_title
– the title of application, default{{application}}
yammer_body
– notification message template, default:<em>{{user}}</em> deploying {{branch}} to <strong>{{target}}</strong>
yammer_success_body
– success template, default:Deploy to <strong>{{target}}</strong> successful
yammer_failure_body
– failure template, default:Deploy to <strong>{{target}}</strong> failed
Usage
If you want to notify only about beginning of deployment add this line only:
before('deploy', 'yammer:notify');
If you want to notify about successful end of deployment add this too:
after('deploy:success', 'yammer:notify:success');
If you want to notify about failed deployment add this too:
after('deploy:failed', 'yammer:notify:failure');
- Config
- Tasks
yammer:notify
— Notifying Yammeryammer:notify:success
— Notifying Yammer about deploy finishyammer:notify:failure
— Notifying Yammer about deploy failure
Config
yammer_url
yammer_title
Title of project
yammer_body
Deploy message