Refactor build config to use triggers