Drone plugin to fail the build if attempting to deploy on Friday, Saturday, or Sunday.
512
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.
Build the docker image by running:
docker build --rm=true -t albinodrought/drone-stop-weekend-deploys .
To perform a check, execute the following:
docker run --rm albinodrought/drone-stop-weekend-deploys
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*
Content type
Image
Digest
Size
3.3 MB
Last updated
almost 9 years ago
docker pull albinodrought/drone-stop-weekend-deploys