Merge pull request 'Added forced output code' (#14) from setup into master

Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
2026-06-06 00:40:55 +02:00
3 changed files with 6 additions and 15 deletions
+2 -5
View File
@@ -9,11 +9,8 @@ WORKDIR /app_source
COPY . . COPY . .
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" --verbosity normal > /tmp/restore_error.log 2>&1 || true RUN --network=host dotnet restore "LiteCharmsSecurity.sln" > /tmp/error.txt 2>&1 || true
RUN export ERR_MSG=$(cat /tmp/error.txt | head -n 5) && false $ERR_MSG
RUN cat /tmp/restore_error.log
RUN if grep -q "error" /tmp/restore_error.log; then exit 1; fi
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin.Api" WORKDIR "/app_source/src/LiteCharmsSecurity.Admin.Api"
RUN dotnet build "LiteCharmsSecurity.Admin.Api.csproj" -c Release -o /app/build RUN dotnet build "LiteCharmsSecurity.Admin.Api.csproj" -c Release -o /app/build
+2 -5
View File
@@ -18,11 +18,8 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
COPY . . COPY . .
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" --verbosity normal > /tmp/restore_error.log 2>&1 || true RUN --network=host dotnet restore "LiteCharmsSecurity.sln" > /tmp/error.txt 2>&1 || true
RUN export ERR_MSG=$(cat /tmp/error.txt | head -n 5) && false $ERR_MSG
RUN cat /tmp/restore_error.log
RUN if grep -q "error" /tmp/restore_error.log; then exit 1; fi
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin" WORKDIR "/app_source/src/LiteCharmsSecurity.Admin"
RUN dotnet build "LiteCharmsSecurity.Admin.csproj" -c Release -o /app/build RUN dotnet build "LiteCharmsSecurity.Admin.csproj" -c Release -o /app/build
@@ -9,11 +9,8 @@ WORKDIR /app_source
COPY . . COPY . .
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" --verbosity normal > /tmp/restore_error.log 2>&1 || true RUN --network=host dotnet restore "LiteCharmsSecurity.sln" > /tmp/error.txt 2>&1 || true
RUN export ERR_MSG=$(cat /tmp/error.txt | head -n 5) && false $ERR_MSG
RUN cat /tmp/restore_error.log
RUN if grep -q "error" /tmp/restore_error.log; then exit 1; fi
WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity" WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity"
RUN dotnet build "LiteCharmsSecurity.STS.Identity.csproj" -c Release -o /app/build RUN dotnet build "LiteCharmsSecurity.STS.Identity.csproj" -c Release -o /app/build