Merge template code into build/deploy steps