Sign inSign up

albinodrought/drone-stop-weekend-deploys

By albinodrought

•Updated almost 9 years ago

Drone plugin to fail the build if attempting to deploy on Friday, Saturday, or Sunday.

Image
0

512

albinodrought/drone-stop-weekend-deploys repository overview

⁠drone-stop-weekend-deploys

drone-bitbucket-artifacts on Docker Hub Docker Pulls

This is a Bash Drone⁠ plugin to prevent weekend deploys. If the day is Friday, Saturday, or Sunday, the container will exit with a non-zero exit code.

⁠Docker

Build the docker image by running:

docker build --rm=true -t albinodrought/drone-stop-weekend-deploys .

⁠Usage

To perform a check, execute the following:

docker run --rm albinodrought/drone-stop-weekend-deploys

⁠Drone usage

pipeline:
  stop-weekend-deploys:
    image: albinodrought/drone-stop-weekend-deploys
    when:
      branch: release/v*

  deploy:
    image: your-regular-deploy-step-here
    when:
      branch: release/v*

Tag summary

Content type

Image

Digest

Size

3.3 MB

Last updated

almost 9 years ago

docker pull albinodrought/drone-stop-weekend-deploys