Refactor build config to use triggers

Add triggers to build configs, similar to triggers on deployment configs
Use a switch statement whenever doing more than a single equality comparison