Added forced output code
This commit is contained in:
@@ -9,11 +9,8 @@ WORKDIR /app_source
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN --network=host dotnet restore "LiteCharmsSecurity.sln" --verbosity normal > /tmp/restore_error.log 2>&1 || true
|
||||
|
||||
RUN cat /tmp/restore_error.log
|
||||
|
||||
RUN if grep -q "error" /tmp/restore_error.log; then exit 1; fi
|
||||
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
|
||||
|
||||
WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity"
|
||||
RUN dotnet build "LiteCharmsSecurity.STS.Identity.csproj" -c Release -o /app/build
|
||||
|
||||
Reference in New Issue
Block a user