Skip to content

Commit

Permalink
Refactor deploy-azure-resources-test.yml: Update SQL Server password …
Browse files Browse the repository at this point in the history
…parameter for test environment
  • Loading branch information
crlsocro committed Sep 19, 2024
1 parent 2ba085c commit 3796eb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy-azure-resources-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:

name: Deploy to Azure Resource Group

env:
SQL_SERVER_PASSWORD: ${{ secrets.SQL_SERVER_PASSWORD_TEST }}

jobs:
deploy-azure-resources-test:
Expand All @@ -30,7 +28,7 @@ jobs:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: ${{ secrets.AZURE_RG_TEST }}
template: infra/main.bicep
parameters: "sqlServerPassword=${{ env.SQL_SERVER_PASSWORD }}"
parameters: "sqlServerPassword=${{ secrets.SQL_SERVER_PASSWORD_TEST }}"
failOnStdErr: false


2 changes: 0 additions & 2 deletions infra/modules/sqlServer.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ resource sqlDB 'Microsoft.Sql/servers/databases@2022-05-01-preview' = {
tier: 'Standard'
}
}

output connectionString string = 'Server=tcp:${serverName}${environment().suffixes.sqlServerHostname},1433; Initial Catalog=${sqlDBName}; Persist Security Info=False; User ID=${administratorLoginPassword}; Password=${administratorLoginPassword}; MultipleActiveResultSets=False; Encrypt=True; TrustServerCertificate=False; Connection Timeout=300;'

0 comments on commit 3796eb8

Please sign in to comment.