ajout du debut de create CI voir les tutos code#0
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
3cb110b7ae
commit
6b8252f201
@ -0,0 +1,25 @@
|
||||
**/.classpath
|
||||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.project
|
||||
**/.settings
|
||||
**/.toolstarget
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/*.*proj.user
|
||||
**/*.dbmdl
|
||||
**/*.jfm
|
||||
**/azds.yaml
|
||||
**/bin
|
||||
**/charts
|
||||
**/docker-compose*
|
||||
**/Dockerfile*
|
||||
**/node_modules
|
||||
**/npm-debug.log
|
||||
**/obj
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
LICENSE
|
||||
README.md
|
@ -0,0 +1,22 @@
|
||||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["MyFirstBlazor.csproj", "."]
|
||||
RUN dotnet restore "./MyFirstBlazor.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/."
|
||||
RUN dotnet build "MyFirstBlazor.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "MyFirstBlazor.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "MyFirstBlazor.dll"]
|
@ -0,0 +1,5 @@
|
||||
@page "/logs"
|
||||
|
||||
<h3>CreateLog</h3>
|
||||
|
||||
<button @onclick="CreateLogs">Create logs</button>
|
@ -1,9 +1,19 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": { // All providers, LogLevel applies to all the enabled providers.
|
||||
"Default": "Error", // Default logging, Error and higher.
|
||||
"Microsoft": "Warning" // All Microsoft* categories, Warning and higher.
|
||||
},
|
||||
"Debug": { // Debug provider.
|
||||
"LogLevel": {
|
||||
"Default": "Trace",
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
"Default": "Information", // Overrides preceding LogLevel:Default setting.
|
||||
"Microsoft.Hosting": "Trace" // Debug:Microsoft.Hosting category.
|
||||
}
|
||||
},
|
||||
"EventSource": { // EventSource provider
|
||||
"LogLevel": {
|
||||
"Default": "Warning" // All categories of EventSource provider.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue