Bu9ild path fixes
All checks were successful
Build Docker Images / test (push) Successful in 1m31s
Build Docker Images / build-and-push (push) Successful in 1m37s

This commit is contained in:
2025-11-28 11:29:38 +01:00
parent b0e77ec835
commit 57f1359c96
3 changed files with 13 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ jobs:
dotnet-version: 10.0.x
- name: Restore dependencies
working-directory: src/Backend
working-directory: .
run: |
dotnet restore DiunaBI.API/DiunaBI.API.csproj
dotnet restore DiunaBI.UI.Web/DiunaBI.UI.Web.csproj
@@ -31,7 +31,7 @@ jobs:
dotnet restore DiunaBI.Tests/DiunaBI.Tests.csproj
- name: Build solution and prepare plugins
working-directory: src/Backend
working-directory: .
run: |
set -e
# Build only required projects — skip DiunaBI.UI.Mobile
@@ -44,7 +44,7 @@ jobs:
ls -la DiunaBI.Tests/bin/Release/net10.0/Plugins/ || true
- name: Run Tests
working-directory: src/Backend
working-directory: .
run: |
dotnet test DiunaBI.Tests/DiunaBI.Tests.csproj \
--configuration Release \
@@ -59,8 +59,8 @@ jobs:
with:
name: test-results
path: |
src/Backend/DiunaBI.Tests/TestResults/*.trx
src/Backend/DiunaBI.Tests/TestResults/**/coverage.cobertura.xml
DiunaBI.Tests/TestResults/*.trx
DiunaBI.Tests/TestResults/**/coverage.cobertura.xml
retention-days: 7
build-and-push:
@@ -88,7 +88,7 @@ jobs:
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login code.bim-it.pl -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: Build and push API image
working-directory: src/Backend
working-directory: .
run: |
docker buildx build \
--platform linux/amd64 \
@@ -100,7 +100,7 @@ jobs:
.
- name: Build and push UI image
working-directory: src/Backend
working-directory: .
run: |
docker buildx build \
--platform linux/amd64 \

View File

@@ -1,7 +1,7 @@
# Stage 1: Build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src/Backend
WORKDIR /
# Copy solution and all project files for restore
COPY DiunaBI.sln ./
@@ -18,16 +18,16 @@ RUN dotnet restore DiunaBI.API/DiunaBI.API.csproj
COPY . .
# Build plugin first
WORKDIR /src/Backend/DiunaBI.Plugins.Morska
WORKDIR /DiunaBI.Plugins.Morska
RUN dotnet build -c Release
# Build and publish API
WORKDIR /src/Backend/DiunaBI.API
WORKDIR /DiunaBI.API
RUN dotnet publish -c Release -o /app/publish --no-restore
# Copy plugin DLL to publish output
RUN mkdir -p /app/publish/Plugins && \
cp /src/Backend/DiunaBI.Plugins.Morska/bin/Release/net10.0/DiunaBI.Plugins.Morska.dll /app/publish/Plugins/
cp /DiunaBI.Plugins.Morska/bin/Release/net10.0/DiunaBI.Plugins.Morska.dll /app/publish/Plugins/
# Stage 2: Runtime
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime

View File

@@ -1,6 +1,6 @@
# Stage 1: Build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src/Backend
WORKDIR /
# Copy solution and all project files for restore
COPY DiunaBI.sln ./
@@ -16,7 +16,7 @@ RUN dotnet restore DiunaBI.UI.Web/DiunaBI.UI.Web.csproj
COPY . .
# Build and publish
WORKDIR /src/Backend/DiunaBI.UI.Web
WORKDIR /DiunaBI.UI.Web
RUN dotnet publish -c Release -o /app/publish --no-restore
# Stage 2: Runtime