Need private packages and team management tools?Check out npm Teams »

netlify-deployment-hours-plugin

0.0.8 • Public • Published

CircleCI npmversion

netlify-deployment-hours-plugin

A Netlify build plugin that blocks deployment if it is outside of deployment hours.

Usage

To install, add the following lines to your netlify.toml file:

[[plugins]]
package = "netlify-deployment-hours-plugin"

Note: The [[plugins]] line is required for each plugin, even if you have other plugins in your netlify.toml file already.

There are two environment variable used to configure this plugin:

  • DEPLOYMENT_HOURS_EXPRESSION
    • A cron-like expression that expresses when a deployment can occur
  • DEPLOYMENT_HOURS_TIMEZONE
    • tz database value that expresses the timezone of the expression

Both are passed into cron-allowed-range to determine if a deployment should proceed. See the cron-allowed-range documentation for more details on how to form the cron-like expression.

Install

npm i netlify-deployment-hours-plugin

DownloadsWeekly Downloads

88

Version

0.0.8

License

Apache-2.0

Unpacked Size

15.5 kB

Total Files

7

Last publish

Collaborators

  • avatar