How to skip a deployment via commit message?

You can use the {COMMIT_MESSAGE} deploy script variable to do some magic inside your deploy script. For example, skipping deployments can be done easily with this.

An example to skip a deployment:

if [[ {COMMIT_MESSAGE} =~ "skip-deployment" ]]; then
    echo "Skipping deployment upon commit message request."
    exit 0

You can even step it up a notch, flush the FastCGI cache when you add a specific word in the commit message:

if [[ {COMMIT_MESSAGE} =~ "flush-fastcgi" ]]; then

10 November 2020