-
Notifications
You must be signed in to change notification settings - Fork 13
24 lines (24 loc) · 1.07 KB
/
ControlDB-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: ControlDB Deployment
on: workflow_dispatch
jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Display checkout files and folders
run: Get-ChildItem ${{github.workspace}} -Recurse
- name: Azure Login
uses: Azure/login@v1
with:
creds: '{"clientId":"${{ secrets.CLIENT_ID }}","clientSecret":"${{ secrets.CLIENT_SECRET }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID }}","tenantId":"${{ secrets.TENANT_ID }}"}'
- name: Build and Deploy SQL Database
uses: Azure/sql-action@v2
with:
connection-string: ${{secrets.CONTROLDB_CONNECTIONSTRING}}
path: ${{github.workspace}}\elt-framework\ControlDB\ELT\Database.sqlproj
action: 'Publish'
arguments: '/p:DropPermissionsNotInSource=false /p:DropRoleMembersNotInSource=false /p:DropObjectsNotInSource=true /p:IgnoreColumnOrder=true /p:IgnorePermissions=true'
- name: Azure Logout
run: |
az logout