Skip to content

Commit

Permalink
Fix CI build for .NET 7 (#5)
Browse files Browse the repository at this point in the history
* Set up .NET 7 during CI/CD.

* Fix the yaml typo

* Update .NET SDK in Dockerfile.
  • Loading branch information
dmytro-khmara committed Jun 11, 2023
1 parent f209780 commit 4052571
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
- name: Build
run: docker build --target build .
- name: Test
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ jobs:
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/}" >> $GITHUB_ENV
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /source

# copy csproj and restore as distinct layers
Expand Down

0 comments on commit 4052571

Please sign in to comment.