Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG BUILD_CONFIGURATION=Release
ARG TAG_VERSION
WORKDIR /src
COPY ["src/TwitchStreamingTools/TwitchStreamingTools.csproj", "src/TwitchStreamingTools/"]
RUN dotnet restore "src/TwitchStreamingTools/TwitchStreamingTools.csproj"
COPY ["src/Nullinside.TwitchStreamingTools/Nullinside.TwitchStreamingTools.csproj", "src/TwitchStreamingTools/"]
RUN dotnet restore "src/Nullinside.TwitchStreamingTools/Nullinside.TwitchStreamingTools.csproj"
COPY src/ .
WORKDIR "/src/TwitchStreamingTools"
RUN dotnet build "TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/build
WORKDIR "/src/Nullinside.TwitchStreamingTools"
RUN dotnet build "Nullinside.TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
Expand All @@ -20,7 +20,7 @@ ARG DESCRIPTION
RUN apt-get update && apt-get dist-upgrade -y && apt-get install zip jq -y

# Generate the executables
RUN dotnet publish "TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x64 -r win-x64 -p:PublishSingleFile=True -p:PublishReadyToRun=True --self-contained
RUN dotnet publish "Nullinside.TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x64 -r win-x64 -p:PublishSingleFile=True -p:PublishReadyToRun=True --self-contained
RUN cd /app/publish/win-x64 && zip -r ../twitch-streaming-tools.zip *

# Create a tag and associate it with a release in GitHub. We don't need to check if it already exist, if it already
Expand Down