From 73cc808eb5c543765fa9b6c4a98888c7d8bcc026 Mon Sep 17 00:00:00 2001 From: Michael Fyffe <6224270+TraGicCode@users.noreply.github.com> Date: Sun, 16 Nov 2025 23:09:20 -0600 Subject: [PATCH] Fix docker build along with attempting to fix dotnet tool publish --- .github/workflows/dotnet_tool_build.yml | 2 +- src/BuslyCLI.Console/Dockerfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet_tool_build.yml b/.github/workflows/dotnet_tool_build.yml index f325661..038fe64 100644 --- a/.github/workflows/dotnet_tool_build.yml +++ b/.github/workflows/dotnet_tool_build.yml @@ -20,7 +20,7 @@ jobs: uses: devcontainers/ci@v0.3 with: runCmd: | - dotnet cake --target Pack-DotNetTool --version ${{ inputs.version }} + dotnet cake --target Pack-DotNetTool --package-version ${{ inputs.version }} - name: Publish to NuGet (optional) run: dotnet nuget push ./artifacts/nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} diff --git a/src/BuslyCLI.Console/Dockerfile b/src/BuslyCLI.Console/Dockerfile index c761180..97a8075 100644 --- a/src/BuslyCLI.Console/Dockerfile +++ b/src/BuslyCLI.Console/Dockerfile @@ -2,6 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0.100 AS build WORKDIR /src +COPY Directory.Build.props ./ + # Copy project file and restore dependencies (better layer caching) COPY src/BuslyCLI.Console/BuslyCLI.Console.csproj ./BuslyCLI.Console/ RUN dotnet restore "BuslyCLI.Console/BuslyCLI.Console.csproj" \