https://github.com/awkward/serverless-plugin-slack
Notify Slack after deployments
https://github.com/awkward/serverless-plugin-slack
Last synced: about 1 year ago
JSON representation
Notify Slack after deployments
- Host: GitHub
- URL: https://github.com/awkward/serverless-plugin-slack
- Owner: awkward
- Created: 2018-01-24T14:33:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T10:29:07.000Z (over 3 years ago)
- Last Synced: 2024-03-27T02:56:21.974Z (about 2 years ago)
- Language: JavaScript
- Size: 333 KB
- Stars: 7
- Watchers: 4
- Forks: 6
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless Plugin Webpack
Notify slack webhook after running `sls deploy function`
## Install
Using npm:
```
npm install serverless-plugin-slack --save-dev
```
Add the plugin to your `serverless.yml` file:
```yaml
plugins:
- serverless-plugin-slack
```
## Configuration
```yaml
custom:
slack:
webhook_url: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
user: some_user (optional, defaults to user set in process.env.USER)
emoji: custom slack emoji (optional, default :cloud:)
function_deploy_message: optional message, defaults to "`{{user}}` deployed function (`{{name}}`) to environment `{{stage}}` in service `{{service}}`"
service_deploy_message: optional message, defaults to "`{{user}}` deployed service `{{service}}` to environment `{{stage}}`"
```
In the messages the following variables are available:
* {{user}}
* {{service}}
* {{name}} - function name, only when deploying single function
* {{stage}}