Skip to content

Commit 27813cc

Browse files
committed
fixed build process
1 parent dcb40c5 commit 27813cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_setup/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use official .NET SDK image as base
22
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
3-
ARG VERSION=1.0.0
3+
ARG VERSION=1.0.2
44
ENV VERSION=${VERSION}
55

66
# Install necessary tools (optional curl for debugging)
@@ -20,7 +20,8 @@ RUN dotnet restore
2020

2121
# Build the project
2222
# Update version in csproj file
23-
RUN sed -i "s/<Version>.*<\/Version>/<Version>${VERSION:1}<\/Version>/" Firetail.Net.csproj
23+
RUN TRIMMED_VERSION=$(echo $VERSION | cut -c1-) && \
24+
sed -i "s/<Version>.*<\/Version>/<Version>$TRIMMED_VERSION<\/Version>/" Firetail.Net.csproj
2425

2526
RUN dotnet build -c Release -o /output
2627

0 commit comments

Comments
 (0)