Skip to content

Downgrade OpenTelemetry.Exporter.Prometheus.AspNetCore from 1.8.0-rc.… #27

Downgrade OpenTelemetry.Exporter.Prometheus.AspNetCore from 1.8.0-rc.…

Downgrade OpenTelemetry.Exporter.Prometheus.AspNetCore from 1.8.0-rc.… #27

Workflow file for this run

name: Workflow to build and deploy the backend to Azure Web App - IPUSenpai
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
include-prerelease: true
- name: Build with dotnet
run: dotnet build --configuration Release
- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
steps:
- name: Add mask
run: |
echo "::add-mask::${{ secrets.APP_NAME }}"
echo "::add-mask::${{ steps.deploy-to-webapp.outputs.webapp-url }}"
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: .net-app
- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_026B77CC9208426E9184C23881CA6D96 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_08E288E775C94524AF0DF5BD1E2E1E63 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_F0520BE3A96C4960AD183973E996B624 }}
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: ${{ secrets.APP_NAME }}
slot-name: ${{ secrets.SLOT_NAME }}
package: .