Skip to content

Update deployment to use ACR image with imagePullSecret #10

Update deployment to use ACR image with imagePullSecret

Update deployment to use ACR image with imagePullSecret #10

Workflow file for this run

name: Build and Deploy DoomSkillsWeb to Azure
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Build with dotnet
run: dotnet build DoomSkillsWeb/DoomSkillsWeb.csproj --configuration Release
- name: Publish with dotnet
run: dotnet publish DoomSkillsWeb/DoomSkillsWeb.csproj -c Release -o ./publish
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: 'azdoomskillswebapp'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ./publish