This project demonstrates how to automate test a star schema development with 'microsoft.sqlpackage' using a GitHub Actions & Docker.
- Build SQL server objects (tables, views, and instance objects)
- Dacpack file is created
- Contents of dacpac is consumed by Github Actions
- Deploy against a SQL database
- Azure Subscription
- Create a new Azure Service Principal
- Create a new Azure SQL Database, see infra Makefile for more details.
- Add the following secrets to your GitHub repository:
AZURE_SQL_CONNECTION_STRING
- Azure SQL Database connection string of your database
- Run database deployment from github actions tab. See deploy.yml
To run sql project in Docker, follow these steps:
- Build and start the necessary containers
make docker
- Examine the logs
docker compose logs -f