Skip to content

Commit

Permalink
Update build workflow to publish to ACR
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytes committed Feb 14, 2024
1 parent 0b9c6d3 commit a8a27e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dotnet-docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and deploy ASP.Net Core app to an Azure Web App
name: Dotnet Publish to ACR

on:
push:
Expand Down Expand Up @@ -37,5 +37,9 @@ jobs:
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build with dotnet
run: dotnet publish -c Release -t:PublishContainer -p ContainerRepository=${{ vars.DOCKER_LOGIN_SERVER }}/${{ env.IMAGE_NAME }} -p ContainerRegistry=${{ vars.DOCKER_LOGIN_SERVER }}
run: |
dotnet publish -c Release -t:PublishContainer
-p ContainerRepository=${{ env.IMAGE_NAME }}
-p ContainerRegistry=${{ vars.DOCKER_LOGIN_SERVER }}
-p ContainerImageTag=${{ env.TAG }}
working-directory: src/SampleApi

0 comments on commit a8a27e1

Please sign in to comment.