I've set up a CodePipeline which automatically takes new commits on Github, builds them, and then deploys to EC2 instances.
This works well. However, since this is a web project I don't need to run build scripts for all commits made. I don't waste my time with it locally so I don't want to pay to waste it through AWS either.
My goal is to instruct CodeBuild to only build under certain conditions. I added a "build when PATH" setting to my project but it just builds all of the time anyway.
If I can't do this directly on CodeBuild can I (and does it make sense) to have branching logic in a CodePipeline?
I sometimes need to run NPM. Sometimes Composer. At times I run both and most often neither are run.
Any input is appreciated.