Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbres committed Mar 16, 2024
1 parent 2f39927 commit e264c53
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Build
shell: bash
run: |
tag=$(git describe --tags --abbrev=0)
release_name="SmtpToHttp-$tag-${{ matrix.target }}"
dotnet publish src/SmtpToHttp/SmtpToHttp.csproj --framework net6.0 --runtime "${{ matrix.target }}" --no-self-contained -p:PublishSingleFile=true -c Release -o "$release_name"
dotnet publish src/SmtpToHttp/SmtpToHttp.csproj --framework net8.0 --runtime "${{ matrix.target }}" --no-self-contained -p:PublishSingleFile=true -c Release -o "$release_name"
if [ "${{ matrix.target }}" == "win-x64" ]; then
7z a -tzip "${release_name}.zip" "./${release_name}/*"
Expand Down
4 changes: 2 additions & 2 deletions src/SmtpToHttp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["SmtpToHttp.csproj", "./"]
RUN dotnet restore "./SmtpToHttp.csproj"
Expand All @@ -15,7 +15,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
fi \
&& dotnet publish "SmtpToHttp.csproj" -c Release -o /app/publish -r $RID --self-contained false

FROM mcr.microsoft.com/dotnet/runtime:6.0 AS final
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS final
WORKDIR /app
COPY --from=build /app/publish .

Expand Down
2 changes: 1 addition & 1 deletion src/SmtpToHttp/SmtpToHttp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<DockerfileContext>..\..</DockerfileContext>
<AssemblyVersion>$(PackageVersion)</AssemblyVersion>
<FileVersion>$(PackageVersion)</FileVersion>
<Version>2.0.0.1</Version>
<Version>2.0.0.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit e264c53

Please sign in to comment.