From a8a27e18a6fe10c9d10a8c5133d6c93121d80607 Mon Sep 17 00:00:00 2001 From: Chris Ayers Date: Wed, 14 Feb 2024 06:39:00 +0000 Subject: [PATCH] Update build workflow to publish to ACR --- .github/workflows/dotnet-docker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-docker.yml b/.github/workflows/dotnet-docker.yml index f7805cc..04bd852 100644 --- a/.github/workflows/dotnet-docker.yml +++ b/.github/workflows/dotnet-docker.yml @@ -1,4 +1,4 @@ -name: Build and deploy ASP.Net Core app to an Azure Web App +name: Dotnet Publish to ACR on: push: @@ -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 \ No newline at end of file