Example of continuous integration for database seeding using Azure Devops.
- Use variables in all your sql seeding scripts
- Use a build pipeline in Azure Devops to zip your sql scripts whenever they change
- Use a release pipeline with one task for each environment
- Setup the variable values per task
- In each task, have the following steps
- Make a request to the Health endpoint for your tenant (this will create/
patch the database schema). This can be done with e.g. an inline PowerShell script. - Connect to the database and run the sql script from the build artifact
- Optionally make another Health request to see that things are still working
- Make a request to the Health endpoint for your tenant (this will create/