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*