I'm writing a FAKE script which will basically do the following: -
1. Clean build outputs
2. Modify a configuration file with a specific value.
3. Perform a build.
4. Upload the outputs somewhere.
I've written all the individual tasks. What I now need to do is to set up a set of FAKE build steps to essentially repeat the above steps, once for each configuration value e.g. let's assume the configuration file had an attribute "colour". I want to repeat the above four build steps, and in step 2 use one of the values [ "black"; "blue"; "red"; "white" ]
.
What's the best way of achieving this? Should I just make one big build task that does all of this in one e.g. for loop (seems wrong)? Or create multiple build steps e.g. "Set Config to Blue" and "Set Config to Red" etc. and repeat the whole build flow for each colour (again, seems wrong)?