Added package filtering
Some checks failed
Build on push / prepare (push) Successful in 5s
Build on push / build (push) Failing after 15s

This commit is contained in:
2026-02-14 20:48:34 +01:00
parent 5e493513f1
commit 98abbe661c
23 changed files with 2072 additions and 193 deletions

View File

@@ -0,0 +1,21 @@
using sh.actions.package_cleanup;
using sh.actions.package_cleanup.Service;
var builder = Host.CreateApplicationBuilder(args);
builder.Configuration
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile("appsettings.local.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables()
.EnsureGiteaConfig();
builder.Services
.AddSingleton<IPackageService, PackageService>()
.AddScoped<IGiteaPackageService, GiteaPackageService>()
.AddHostedService<Worker>()
.AddHttpClient<IGiteaPackageService, GiteaPackageService>();
var host = builder.Build();
host.Run();