-
-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (62 loc) · 2.07 KB
/
04-exposing-azure-blob-storage-change-feed.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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