diff --git a/.woodpecker/.api_uploadimage.yaml b/.woodpecker/.api_uploadimage.yaml index bcbffb7..c146b11 100644 --- a/.woodpecker/.api_uploadimage.yaml +++ b/.woodpecker/.api_uploadimage.yaml @@ -25,6 +25,8 @@ steps: context: ./API dockerfile: ./API/YABA.API/Dockerfile tags_file: tags.txt + platforms: + - linux/amd64 username: from_secret: gitea_yaba_registry_username password: diff --git a/API/YABA.API/Program.cs b/API/YABA.API/Program.cs index 5d27bf3..4ca46e3 100644 --- a/API/YABA.API/Program.cs +++ b/API/YABA.API/Program.cs @@ -97,7 +97,7 @@ var app = builder.Build(); // Run database migrations using (var scope = app.Services.CreateScope()) { - var yabaDbContext = scope.ServiceProvider.GetRequiredService(); + var yabaDbContext = scope.ServiceProvider.GetRequiredService(); yabaDbContext.Database.Migrate(); }