Skip to content

Commit a8ead38

Browse files
committed
feat: latest .NET 10 and GH actions
1 parent 826b9b8 commit a8ead38

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
steps:
1818

1919
- name: Checkout repository
20-
uses: actions/checkout@v3
21-
22-
- name: Setup .NET 8
23-
uses: actions/setup-dotnet@v3
20+
uses: actions/checkout@v4
21+
22+
- name: Setup .NET 10
23+
uses: actions/setup-dotnet@v4
2424
with:
25-
dotnet-version: 8.0.x
25+
dotnet-version: 10.0.x
2626

2727
- name: Restore dependencies
2828
run: dotnet restore

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v3
19-
20-
- name: Setup .NET 8
21-
uses: actions/setup-dotnet@v3
18+
uses: actions/checkout@v4
19+
20+
- name: Setup .NET 10
21+
uses: actions/setup-dotnet@v4
2222
with:
23-
dotnet-version: 8.0.x
23+
dotnet-version: 10.0.x
2424

2525
- name: Restore dependencies
2626
run: dotnet restore
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22

3-
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
3+
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
44
WORKDIR /app
55
EXPOSE 80
66
EXPOSE 443
77

8-
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
8+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
99
WORKDIR /src
10-
COPY ["awesome-github-stats/awesome-github-stats.csproj", "awesome-github-stats/"]
11-
RUN dotnet restore "awesome-github-stats/awesome-github-stats.csproj"
10+
COPY ["AwesomeGithubStats.Api/AwesomeGithubStats.Api.csproj", "AwesomeGithubStats.Api/"]
11+
COPY ["AwesomeGithubStats.Core/AwesomeGithubStats.Core.csproj", "AwesomeGithubStats.Core/"]
12+
RUN dotnet restore "AwesomeGithubStats.Api/AwesomeGithubStats.Api.csproj"
1213
COPY . .
13-
WORKDIR "/src/awesome-github-stats"
14-
RUN dotnet build "awesome-github-stats.csproj" -c Release -o /app/build
14+
WORKDIR "/src/AwesomeGithubStats.Api"
15+
RUN dotnet build "AwesomeGithubStats.Api.csproj" -c Release -o /app/build
1516

1617
FROM build AS publish
17-
RUN dotnet publish "awesome-github-stats.csproj" -c Release -o /app/publish
18+
RUN dotnet publish "AwesomeGithubStats.Api.csproj" -c Release -o /app/publish
1819

1920
FROM base AS final
2021
WORKDIR /app
2122
COPY --from=publish /app/publish .
22-
ENTRYPOINT ["dotnet", "awesome-github-stats.dll"]
23+
ENTRYPOINT ["dotnet", "AwesomeGithubStats.Api.dll"]

0 commit comments

Comments
 (0)