Skip to content

Commit

Permalink
Update main_build-blazor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceMcCarthy committed Apr 20, 2023
1 parent 9f7d435 commit 58e8772
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main_build-blazor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
TEST_PROJ_PATH: src\Blazor\MyBlazorApp.Tests\MyBlazorApp.Tests.csproj
NUGET_CONFIG_PATH: src\Blazor\MyBlazorApp\NuGet.Config
IMAGE_NAME: "lancemccarthy/myblazorapp"
IMAGE_BASE: "mcr.microsoft.com/dotnet/aspnet:7.0"
IMAGE_REGISTRY: "registry.hub.docker.com"
IMAGE_TAG: "latest"

Expand Down Expand Up @@ -100,7 +99,7 @@ jobs:

# Nice new feature of .NET https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
- name: Publish Blazor Project to Docker Hub
run: dotnet publish ${{ env.BLAZOR_PROJ_PATH }} -c ${{ env.CONFIGURATION }} --os linux --arch x64 -p PublishProfile=DefaultContainer -p ContainerRegistry=${{ env.IMAGE_REGISTRY }} -p ContainerImageName=${{ env.IMAGE_NAME }} -p ContainerImageTag=${{ env.IMAGE_BASE }} -p ContainerBaseImage=${{ env.IMAGE_BASE }} --no-build
run: dotnet publish ${{ env.BLAZOR_PROJ_PATH }} -c ${{ env.CONFIGURATION }} --os linux --arch x64 -p PublishProfile=DefaultContainer -p ContainerRegistry=${{ env.IMAGE_REGISTRY }} -p ContainerImageName=${{ env.IMAGE_NAME }} -p ContainerImageTag=${{ env.IMAGE_BASE }} --no-build


###################################
Expand Down

0 comments on commit 58e8772

Please sign in to comment.