Disable deployment with app setting SCM_DISABLE_DEPLOY_ON_PUSH

Fixes #1337