I want to setup a continuous integration pipeline for the first time. I have a website that includes a config file that points to MySQL and Redis. I would like to build a package once and then deploy it to test, UAT and live environments.
I don't want to rebuild the package after deploying it to each environment because it could cause inconsistencies between builds but I can't see an alternative because the config file would need to be different depending on which environment it was deployed to (the test server would be using a different database to live or UAT).
Does anyone have any ideas on how this would be possible?