++
.NET / build (push) Failing after 52s

This commit is contained in:
monster
2022-05-16 07:45:50 +03:00
parent 31bd70f971
commit ea76d7dd8c
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS publish
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
ADD ./src /src
WORKDIR /src
@@ -10,7 +10,7 @@ RUN dotnet test RgDevBot.sln -c Release
RUN dotnet publish RgDevBot.sln -c Release -o /app
# Final image
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=publish /app .
COPY --from=build /app .
ENTRYPOINT ["dotnet", "RgDevBot.dll"]
+1 -1
View File
@@ -25,7 +25,7 @@ namespace RgDevBot
public async Task Parse()
{
var url = "https://rg-dev.ru/api/news/?type=news";
var url = "https://rg-dev.ru/api/news/?format=json&type=news";
var content = await Get(url);
var news = JsonConvert.DeserializeObject<NewsListResponse>(content);