Socket
Socket
Sign inDemoInstall

@nexapp/notify-deployment

Package Overview
Dependencies
18
Maintainers
8
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nexapp/notify-deployment

Notify slack for gitlab deployment


Version published
Maintainers
8
Created

Readme

Source

Notify-Deployment

Small lib to send slack notification about Gitlab deployment. It is less noisy then Gitlab since you can control on what environment you want it.

You must add in the repository CI/CD variables the slack URL for the bot.

 variables:
  SLACK_URL: $SLACK_URL

You can add a CI variable to easily reuse commands.

.notification:
  before_script:
    - npx @nexapp/notify-deployment --step start
  after_script:
    - npx @nexapp/notify-deployment --step finish

If there is already a before_script or after_script, you can merge them using references.

deploy/production:
  extends:
    - .deploy
  before_script:
    - !reference [.deploy, before_script]
    - !reference [.notification, before_script]
  after_script:
    - !reference [.notification, after_script]

Available argument:

npx @nexapp/notify-deployment --step (start|finish)

It customizes the message to notify when the deployment start and when it ends.

Keywords

FAQs

Last updated on 29 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc