Skip to content

Commit

Permalink
chore: Update Azure resource deployment workflow to use correct SQL c…
Browse files Browse the repository at this point in the history
…onnection string secret name
  • Loading branch information
leandromsft committed Jul 1, 2024
1 parent 77a4bcc commit 34c5a59
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/02-Deployment-API.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ on:

env:
CONFIGURATION: 'release'
APP_NAME: 'app-ghdashboard'
AZ_APP_NAME: 'app-ghdashboard'
AZ_RG_NAME: 'rg-ghdashboard'
AZ_BLOB_NAME: 'rg-ghdashboard'
CSPROJ: 'src/github-dashboard.api/github-dashboard.api.csproj'

jobs:
Expand Down Expand Up @@ -53,5 +55,22 @@ jobs:
- uses: azure/webapps-deploy@v3
name: Deploy to Azure
with:
app-name: ${{ env.APP_NAME }}
app-name: ${{ env.AZ_APP_NAME }}
package: my-app-artifact

- name: Get Blob storage connection string
run: |
echo "BLOB_CONNECTION_STRING=$(az storage account show-connection-string --name ${{ env.AZ_BLOB_NAME }} --resource-group ${{ env.AZ_APP_NAME }} --query connectionString -o tsv)" >> $GITHUB_ENV
- name: Set APP Settings
uses: Azure/appservice-settings@v1
with:
app-name: ${{ env.AZ_APP_NAME }}
app-settings-json: |
[
{
"name": "ConnectionStrings__BlobStorage",
"value": "${{ env.BLOB_CONNECTION_STRING }}",
"slotSetting": false
}
]

0 comments on commit 34c5a59

Please sign in to comment.