Skip to content
 
 

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI npm version

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.

About

Block deployment if it is outside of deployment hours.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages