Reviewed-on: #1
This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -3,11 +3,11 @@ type: docker
|
||||
name: "Backend"
|
||||
|
||||
steps:
|
||||
# - name: test
|
||||
# image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
# commands:
|
||||
# - dotnet build
|
||||
# - dotnet test
|
||||
- name: test
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
commands:
|
||||
- dotnet build
|
||||
- dotnet test
|
||||
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
|
||||
@@ -12,12 +12,14 @@ public class Program
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.RegisterServices();
|
||||
builder.Services.AddHealthChecks();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
await HandleMigrationKey(args, app);
|
||||
|
||||
app.ConfigurePipelineRequest();
|
||||
app.UseHealthChecks("/health");
|
||||
|
||||
await app.RunAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user