01. Exposing RethinkDB Change Feed #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 01. Exposing RethinkDB 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-rethinkdb-change-feed | |
template: ./infrastructure/exposing-rethinkdb-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 |