1.0.14 • Published 2 years ago

netlify-deployment-hours-plugin v1.0.14

Weekly downloads
43
License
Apache-2.0
Repository
github
Last release
2 years ago

CircleCI npm
version Coverage Status

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 inputs required to configure this plugin:

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

  [plugins.inputs]
  # Optional: a comma-separated list of deploy contexts this plugin should monitor (default: "production")
  contexts = "production"   # default value
  # A cron-like expression that expresses when a deployment can occur
  expression = "* * * * *"
  # tz database value that expresses the timezone of the expression
  timezone = "America/Toronto"

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.

The required inputs can be overridden with environment variables for scenarios where emergency deploys were required outside of regular deployment hours:

* `DEPLOYMENT_HOURS_EXPRESSION`
* `DEPLOYMENT_HOURS_TIMEZONE`
1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago