fix: update GH workflows and Docker image to .NET 6

This commit is contained in:
spiral 2021-11-26 22:24:24 -05:00
parent 979ab714c3
commit 1567a74a44
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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