05ca8061e9
PR Checks / test-and-build (pull_request) Successful in 5m46s
Add a separate GmRelay.DiscordBot worker using NetCord Gateway with startup token validation, PostgreSQL datasource registration, slash-command setup, component interaction service registration, and lifecycle logging. Wire the Discord service through Aspire AppHost, Docker Compose, PR checks, deploy image build/push/scan/pull steps, README docs, and synchronized version 2.2.0. Add TDD coverage for project isolation, token validation, startup wiring, runtime wiring, and version synchronization. Bump version -> 2.2.0
20 lines
498 B
C#
20 lines
498 B
C#
var builder = DistributedApplication.CreateBuilder(args);
|
|
|
|
var postgres = builder.AddPostgres("postgres")
|
|
.WithPgAdmin()
|
|
.AddDatabase("gmrelay-db");
|
|
|
|
builder.AddProject<Projects.GmRelay_Bot>("bot")
|
|
.WithReference(postgres)
|
|
.WaitFor(postgres);
|
|
|
|
builder.AddProject<Projects.GmRelay_DiscordBot>("discord")
|
|
.WithReference(postgres)
|
|
.WaitFor(postgres);
|
|
|
|
builder.AddProject<Projects.GmRelay_Web>("web")
|
|
.WithReference(postgres)
|
|
.WaitFor(postgres);
|
|
|
|
builder.Build().Run();
|