fix(ci): publier en configuration 'Season 2 Release' (client S2 déployé)
Build & Deploy / build (push) Successful in 8s
Build & Deploy / build (push) Successful in 8s
Le code sélectionne la saison via #if SEASON_2_RELEASE ; sans cette config le build échoue (#error Unsupported build type). Build validé en local. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
2630a9f2af
commit
31aa20abd8
+4
-3
@@ -3,9 +3,10 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY src/ ./src/
|
COPY src/ ./src/
|
||||||
RUN dotnet restore src/Prospect.Server.Api/Prospect.Server.Api.csproj \
|
# Configuration "Season 2 Release" = build qui correspond au client S2 déployé
|
||||||
&& dotnet publish src/Prospect.Server.Api/Prospect.Server.Api.csproj \
|
# (le code sélectionne la saison via des #if SEASON_2_RELEASE / SEASON_3_RELEASE).
|
||||||
-c Release -o /app --no-restore
|
RUN dotnet publish src/Prospect.Server.Api/Prospect.Server.Api.csproj \
|
||||||
|
-c "Season 2 Release" -o /app
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user