Skip to content

Commit

Permalink
Attempt to fix container build
Browse files Browse the repository at this point in the history
  • Loading branch information
csharpfritz committed Feb 16, 2024
1 parent a876505 commit 553043d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
types: [opened, synchronize, reopened, closed]
paths: ["src/**"]
workflow_dispatch:
branches: ["main"]

jobs:
build:
Expand All @@ -22,9 +21,9 @@ jobs:
run:
working-directory: ./src
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: ./global.json
- name: Restore dependencies
Expand Down Expand Up @@ -61,7 +60,10 @@ jobs:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'FritzAndFriends')
name: "Create docker image for Web"
runs-on: ubuntu-latest
# needs: [playwright]
needs: [build]
defaults:
run:
working-directory: ./src
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -76,8 +78,6 @@ jobs:

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Version stamping
id: nbgv_version
Expand All @@ -90,6 +90,8 @@ jobs:

- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./src/TagzApp.Blazor

- name: Publish
run: dotnet publish --os linux --arch x64 -t:PublishContainer /p:ContainerImageTag=${{ steps.nbgv_version.outputs.Version }} /p:ContainerRegistry=ghcr.io
run: dotnet publish --os linux --arch x64 -t:PublishContainer /p:ContainerImageTag=${{ steps.nbgv_version.outputs.Version }} /p:ContainerRegistry=ghcr.io
working-directory: ./src/TagzApp.Blazor

0 comments on commit 553043d

Please sign in to comment.