fix: update GH workflows and Docker image to .NET 6
This commit is contained in:
parent
979ab714c3
commit
1567a74a44
4
.github/workflows/dotnetcore.yml
vendored
4
.github/workflows/dotnetcore.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
dotnet-version: 6.0.x
|
||||
- name: Build with dotnet
|
||||
run: dotnet build --configuration Release
|
||||
test:
|
||||
@ -24,6 +24,6 @@ jobs:
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
dotnet-version: 6.0.x
|
||||
- name: Run automated tests
|
||||
run: dotnet test --configuration Release
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
WORKDIR /app
|
||||
|
||||
# Restore/fetch dependencies excluding app code to make use of caching
|
||||
@ -17,7 +17,7 @@ COPY . /app
|
||||
RUN dotnet build -c Release -o bin
|
||||
|
||||
# Build runtime stage (doesn't include SDK)
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||
LABEL org.opencontainers.image.source = "https://github.com/xSke/PluralKit"
|
||||
|
||||
WORKDIR /app
|
||||
|
Loading…
Reference in New Issue
Block a user