Skip to content

Workflow file for this run

on:
push:
branches:
- main
env:
DOTNET_CORE_VERSION: 8.0.x
CONTAINER_APP_NAME: dienstplan-web-container-app
CONTAINER_APP_ENVIRONMENT_NAME: Dienstplan
RESOURCE_GROUP: Dienstplan
CONTAINER_REGISTRY_NAME: dienstplanregistry
CONTAINER_REGISTRY_LOGIN_SERVER: dienstplanregistry.azurecr.io
jobs:
BuildAndDeployContainerApp:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
- name: Azure login
uses: azure/login@v1
with:
creds: ${{ secrets.Dienstplan_SPN }}
- name: Container App deploy
uses: azure/container-apps-deploy-action@v1
with:
appSourcePath: ${{ github.workspace }}
acrName: ${{ env.CONTAINER_REGISTRY_NAME }}
acrUsername: ${{ secrets.dienstplanregistry_USERNAME_3364 }}
acrPassword: ${{ secrets.dienstplanregistry_PASSWORD_3364 }}
imageToBuild: ${{ env.CONTAINER_REGISTRY_LOGIN_SERVER }}/${{ env.CONTAINER_APP_NAME }}:${{ github.sha }}
containerAppName: ${{ env.CONTAINER_APP_NAME }}
containerAppEnvironment: ${{ env.CONTAINER_APP_ENVIRONMENT_NAME }}
resourceGroup: ${{ env.RESOURCE_GROUP }}