Skip to content

Commit 3845251

Browse files
committed
Initial
0 parents  commit 3845251

14 files changed

+719
-0
lines changed

.config/dotnet-tools.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"microsoft.sqlpackage": {
6+
"version": "162.4.92",
7+
"commands": [
8+
"sqlpackage"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## Secrets Required: Azure SQL Connection String:
2+
# AZURE_SQL_CONNECTION_STRING: 'Server=tcp:yourserver.database.windows.net,1433;Initial Catalog=yourdatabase;Persist Security Info=False;User ID=yourusername;Password=yourpassword;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;'
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
environment:
8+
description: 'Environment'
9+
required: true
10+
default: 'dev'
11+
options:
12+
dev:
13+
- 'dev'
14+
staging:
15+
- 'staging'
16+
prod:
17+
- 'prod'
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
enviornment:
23+
name: ${{ github.event.inputs.environment }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: azure/[email protected]
27+
with:
28+
connection-string: ${{ secrets.AZURE_SQL_CONNECTION_STRING }}
29+
path: './DbProject/DbProject.sqlproj'
30+
action: 'publish'
31+
build-arguments: '-c Release' # Optional build options passed to dotnet build
32+
arguments: '/p:DropObjectsNotInSource=true' # Optional properties and parameters for SqlPackage Publish

0 commit comments

Comments
 (0)