Skip to content

Commit

Permalink
Use publish settings for restore (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman authored Dec 18, 2022
1 parent 51da129 commit 7038343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

- name: Install dependencies
working-directory: src/Valleysoft.Dredge
run: dotnet restore --runtime ${{ matrix.rid }}
run: dotnet restore --runtime ${{ matrix.rid }} /p:IsPublish=true

- name: Publish
working-directory: src/Valleysoft.Dredge
Expand Down
2 changes: 1 addition & 1 deletion src/Valleysoft.Dredge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy AS build
WORKDIR /source

COPY *.csproj .
RUN dotnet restore --use-current-runtime
RUN dotnet restore --use-current-runtime /p:IsPublish=true

COPY . .
RUN dotnet publish -c Release -f net7.0 -o /app --use-current-runtime --self-contained true --no-restore /p:IsPublish=true
Expand Down

0 comments on commit 7038343

Please sign in to comment.