Skip to content

04. Exposing Azure Blob Storage Change Feed #9

04. Exposing Azure Blob Storage Change Feed

04. Exposing Azure Blob Storage Change Feed #9

name: 04. Exposing Azure Blob Storage Change Feed
on: workflow_dispatch
permissions:
id-token: write
contents: read
jobs:
deploy-infrastructure:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Azure Login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy Bicep
uses: azure/arm-deploy@v1
with:
scope: subscription
region: westeurope
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
deploymentName: exposing-azure-blob-storage-change-feed
template: ./infrastructure/exposing-azure-blob-storage-change-feed.bicep
- name: Azure Logout
run: |
az logout
az cache purge
az account clear
deploy-webapp:
runs-on: ubuntu-latest
needs: deploy-infrastructure
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET 7.0 SDK
uses: actions/[email protected]
with:
dotnet-version: '7.0.x'
- name: Restore
run: dotnet restore ./src/Demo.AspNetCore.Changefeed
- name: Build
run: dotnet build ./src/Demo.AspNetCore.Changefeed --configuration Release --no-restore
- name: Publish
run: dotnet publish ./src/Demo.AspNetCore.Changefeed --configuration Release --no-build --output ${DOTNET_ROOT}/app-exposing-change-feed
- name: Azure Login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Deploy
uses: azure/webapps-deploy@v2
with:
app-name: app-exposing-change-feed
package: ${{env.DOTNET_ROOT}}/app-exposing-change-feed
- name: Azure Logout
run: |
az logout
az cache purge
az account clear