New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@schibsted/serverless-slack-deploy-notification

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schibsted/serverless-slack-deploy-notification

Serverless plugin that sends a slack message on deployment start and finish

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Serverless Slack deploy notification

A Serverless plugin that sends a slack message on deployment start and finish

github checks current version @ npm weekly downloads @ npm minified size

Demo

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

Installation

npm install @schibsted/serverless-slack-deploy-notification --save-dev

Options

Required

  • token - Slack API token with at least chat.write scope
  • channel - Channel ID (not channel name)

Optional

  • enabled - Turn notifications off for specific stages
  • logo - make the notification easier to notice by putting app logo on the side of the message
  • travisUrl - URL to your builds in Travis
  • githubUrl - URL to your Github repository
  • appUrl - URL where the application you're deploying will be accessible

See the sample usage below.

Usage

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

Contributing

Everyone is very welcome to contribute to this repository. Feel free to raise issues or to submit Pull Requests.

Keywords

FAQs

Package last updated on 29 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc