Skip to content

Commit

Permalink
update CI SDK to net8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Nov 19, 2023
1 parent 6c649e6 commit cdf4e54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base

# use forward headers
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true

LABEL Maintainer="WeihanLi"

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /src

# Copy csproj and restore as distinct layers
Expand All @@ -28,3 +28,4 @@ WORKDIR /app
COPY --from=build-env /src/OpenReservation/out .

ENTRYPOINT ["dotnet", "OpenReservation.dll"]
ENV ASPNETCORE_HTTP_PORTS=80
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ steps:
displayName: 'Use .NET sdk'
inputs:
packageType: sdk
version: 7.0.x
version: 8.0.x

- script: dotnet --info
displayName: 'dotnet info'
Expand Down

0 comments on commit cdf4e54

Please sign in to comment.