ippey / deployer-chatwork-recipe
deployer's Chatwork recipe
v1.0.0
2017-10-20 05:19 UTC
Replaces
- deployer/recipes: v1.0.0
This package is auto-updated.
Last update: 2024-11-20 19:59:03 UTC
README
This repository contains chatwork recipes to integrate with deployer.
Installing
composer require ippey/deployer-chatwork-recipe --dev
Include recipes in deploy.php file.
require 'recipe/chatwork.php';
Configuration
chatwork_api_token
– chatwork api token, requiredchatwork_room_id
– chatwork room ID, requiredchatwork_title
– the title of application, default{{application}}
chatwork_text
– notification message template, markdown supported_{{user}}_ deploying `{{branch}}` to *{{target}}*
chatwork_success_text
– success template, default:Deploy to *{{target}}* successful
Tasks
chatwork:notify
– send message to chatworkchatwork:notify:success
– send success message to chatwork
Usage
If you want to notify only about beginning of deployment add this line only:
before('deploy', 'chatwork:notify');
If you want to notify about successful end of deployment add this too:
after('success', 'chatwork:notify:success');
License
Licensed under the MIT license.