Bu9ild path fixes
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
dotnet-version: 10.0.x
|
dotnet-version: 10.0.x
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
working-directory: src/Backend
|
working-directory: .
|
||||||
run: |
|
run: |
|
||||||
dotnet restore DiunaBI.API/DiunaBI.API.csproj
|
dotnet restore DiunaBI.API/DiunaBI.API.csproj
|
||||||
dotnet restore DiunaBI.UI.Web/DiunaBI.UI.Web.csproj
|
dotnet restore DiunaBI.UI.Web/DiunaBI.UI.Web.csproj
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
dotnet restore DiunaBI.Tests/DiunaBI.Tests.csproj
|
dotnet restore DiunaBI.Tests/DiunaBI.Tests.csproj
|
||||||
|
|
||||||
- name: Build solution and prepare plugins
|
- name: Build solution and prepare plugins
|
||||||
working-directory: src/Backend
|
working-directory: .
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
# Build only required projects — skip DiunaBI.UI.Mobile
|
# Build only required projects — skip DiunaBI.UI.Mobile
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
ls -la DiunaBI.Tests/bin/Release/net10.0/Plugins/ || true
|
ls -la DiunaBI.Tests/bin/Release/net10.0/Plugins/ || true
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
working-directory: src/Backend
|
working-directory: .
|
||||||
run: |
|
run: |
|
||||||
dotnet test DiunaBI.Tests/DiunaBI.Tests.csproj \
|
dotnet test DiunaBI.Tests/DiunaBI.Tests.csproj \
|
||||||
--configuration Release \
|
--configuration Release \
|
||||||
@@ -59,8 +59,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: |
|
path: |
|
||||||
src/Backend/DiunaBI.Tests/TestResults/*.trx
|
DiunaBI.Tests/TestResults/*.trx
|
||||||
src/Backend/DiunaBI.Tests/TestResults/**/coverage.cobertura.xml
|
DiunaBI.Tests/TestResults/**/coverage.cobertura.xml
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@@ -88,7 +88,7 @@ jobs:
|
|||||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login code.bim-it.pl -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login code.bim-it.pl -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||||
|
|
||||||
- name: Build and push API image
|
- name: Build and push API image
|
||||||
working-directory: src/Backend
|
working-directory: .
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
.
|
.
|
||||||
|
|
||||||
- name: Build and push UI image
|
- name: Build and push UI image
|
||||||
working-directory: src/Backend
|
working-directory: .
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
# Stage 1: Build
|
# Stage 1: Build
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
WORKDIR /src/Backend
|
WORKDIR /
|
||||||
|
|
||||||
# Copy solution and all project files for restore
|
# Copy solution and all project files for restore
|
||||||
COPY DiunaBI.sln ./
|
COPY DiunaBI.sln ./
|
||||||
@@ -18,16 +18,16 @@ RUN dotnet restore DiunaBI.API/DiunaBI.API.csproj
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build plugin first
|
# Build plugin first
|
||||||
WORKDIR /src/Backend/DiunaBI.Plugins.Morska
|
WORKDIR /DiunaBI.Plugins.Morska
|
||||||
RUN dotnet build -c Release
|
RUN dotnet build -c Release
|
||||||
|
|
||||||
# Build and publish API
|
# Build and publish API
|
||||||
WORKDIR /src/Backend/DiunaBI.API
|
WORKDIR /DiunaBI.API
|
||||||
RUN dotnet publish -c Release -o /app/publish --no-restore
|
RUN dotnet publish -c Release -o /app/publish --no-restore
|
||||||
|
|
||||||
# Copy plugin DLL to publish output
|
# Copy plugin DLL to publish output
|
||||||
RUN mkdir -p /app/publish/Plugins && \
|
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
|
# Stage 2: Runtime
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Stage 1: Build
|
# Stage 1: Build
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
WORKDIR /src/Backend
|
WORKDIR /
|
||||||
|
|
||||||
# Copy solution and all project files for restore
|
# Copy solution and all project files for restore
|
||||||
COPY DiunaBI.sln ./
|
COPY DiunaBI.sln ./
|
||||||
@@ -16,7 +16,7 @@ RUN dotnet restore DiunaBI.UI.Web/DiunaBI.UI.Web.csproj
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build and publish
|
# Build and publish
|
||||||
WORKDIR /src/Backend/DiunaBI.UI.Web
|
WORKDIR /DiunaBI.UI.Web
|
||||||
RUN dotnet publish -c Release -o /app/publish --no-restore
|
RUN dotnet publish -c Release -o /app/publish --no-restore
|
||||||
|
|
||||||
# Stage 2: Runtime
|
# Stage 2: Runtime
|
||||||
|
|||||||
Reference in New Issue
Block a user