Skip to content

Commit

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

jobs:
build:
Expand All @@ -22,9 +29,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 +68,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 +86,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 +98,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 a0e21ed

Please sign in to comment.