A Serverless plugin that sends a slack message on deployment start and finish
github checks current version @ npm weekly downloads @ npm minified size
When deployment starts plugin posts a message like this: Deployment in progress
When deployment finishes successfully plugin updates the first message into: Deployment finished successfully
Sadly there's no way to detect a deployment error and send a notification then. In that case you get stuck on the 'deployment in progress' notification
Additionally, when the deploy finishes, plugin posts app details into a thread of the notification e.g. Deployed app details
npm install @schibsted/serverless-slack-deploy-notification --save-dev
token- Slack API token with at leastchat.writescopechannel- Channel ID (not channel name)
enabled- Turn notifications off for specific stageslogo- make the notification easier to notice by putting app logo on the side of the messagetravisUrl- URL to your builds in TravisgithubUrl- URL to your Github repositoryappUrl- URL where the application you're deploying will be accessible
See the sample usage below.
service: your-service provider: name: aws runtime: nodejs12.x custom: slackDeployNotification: enabled: staging: false token: %SLACK_WEB_API_TOKEN channel: %SLACK_CHANNEL_ID logo: https://cdn.pixabay.com/photo/2015/12/11/11/43/google-1088004_1280.png travisUrl: https://travis.schibsted.io/foo/bar githubUrl: https://github.schibsted.io/foo/bar appUrl: https://google.com plugins: - "@schibsted/serverless-slack-deploy-notification" functions: foo: handler: foo.handler
Everyone is very welcome to contribute to this repository. Feel free to raise issues or to submit Pull Requests.