Skip to content

Commit

Permalink
chore: Update Azure resource deployment workflow to get Blob storage …
Browse files Browse the repository at this point in the history
…connection string
  • Loading branch information
leandromsft committed Jul 1, 2024
1 parent 2d6ea98 commit 5d03116
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/03-Deployment-Function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ jobs:
app-name: ${{ env.AZ_FUNC_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_RG_NAME }} --query connectionString -o tsv)" >> $GITHUB_ENV
- name: Set Function Settings
uses: Azure/appservice-settings@v1
with:
Expand All @@ -76,7 +80,12 @@ jobs:
[
{
"name": "MyDbContext",
"value": "${{ env.AZ_SQL_CONNECTION_STRING }}",
"value": "${{ secrets.AZ_SQL_CONNECTION_STRING }}",
"slotSetting": false
},
{
"name": "strgithubapp_STORAGE",
"value": "${{ env.BLOB_CONNECTION_STRING }}",
"slotSetting": false
}
]
Expand Down

0 comments on commit 5d03116

Please sign in to comment.