Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

AlbinoDrought/drone-stop-weekend-deploys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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*

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages