Commit e61f849 1 parent cd01756 commit e61f849 Copy full SHA for e61f849
File tree 6 files changed +20
-12
lines changed
6 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 17
17
- name : Setup .NET Core
18
18
uses : actions/setup-dotnet@v4
19
19
with :
20
- dotnet-version : 5 .x
20
+ dotnet-version : 8 .x
21
21
- name : Restore
22
22
run : dotnet restore src/Giraffe.Website/Giraffe.Website.fsproj
23
23
- name : Build
Original file line number Diff line number Diff line change 1
1
Release Notes
2
2
=============
3
3
4
+ ## 1.6.0
5
+
6
+ - [ Minor CSS change] ( https://github.com/giraffe-fsharp/giraffe-website/pull/3 ) - Credits @m-rinaldi
7
+ - [ (CI) GitHub actions version update] ( https://github.com/giraffe-fsharp/giraffe-website/pull/5 ) - Credits @64J0
8
+ - [ Update to .NET 8] ( https://github.com/giraffe-fsharp/giraffe-website/pull/2 ) - Credits @64J0
9
+
4
10
## 1.5.0
5
11
6
12
CSS changes.
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ module NetworkExtensions =
216
216
type IApplicationBuilder with
217
217
member this.UseTrailingSlashRedirection () =
218
218
this.Use(
219
- fun ctx next ->
219
+ fun ( ctx : HttpContext ) ( next : RequestDelegate ) ->
220
220
let hasTrailingSlash =
221
221
ctx.Request.Path.HasValue
222
222
&& ctx.Request.Path.Value.EndsWith " /"
@@ -229,13 +229,13 @@ module NetworkExtensions =
229
229
let url = Microsoft.AspNetCore.Http.Extensions.UriHelper.GetEncodedUrl ctx.Request
230
230
ctx.Response.Redirect( url, true )
231
231
Threading.Tasks.Task.CompletedTask
232
- | false -> next.Invoke())
232
+ | false -> next.Invoke( ctx ))
233
233
234
234
member this.UseHttpsRedirection ( isEnabled : bool , domainName : string ) =
235
235
match isEnabled with
236
236
| true ->
237
237
this.Use(
238
- fun ctx next ->
238
+ fun ( ctx : HttpContext ) ( next : RequestDelegate ) ->
239
239
let host = ctx.Request.Host.Host
240
240
// Only HTTPS redirect for the chosen domain:
241
241
let mustUseHttps =
@@ -246,7 +246,7 @@ module NetworkExtensions =
246
246
if not mustUseHttps then
247
247
ctx.Request.Scheme <- " https"
248
248
ctx.Request.IsHttps <- true
249
- next.Invoke())
249
+ next.Invoke( ctx ))
250
250
.UseHttpsRedirection()
251
251
| false -> this
252
252
Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/sdk:5 .0-alpine AS build
1
+ FROM mcr.microsoft.com/dotnet/sdk:8 .0-alpine AS build
2
2
3
3
ARG version=0.0.0-undefined
4
4
@@ -9,7 +9,11 @@ COPY src/ ./
9
9
RUN dotnet publish /p:Version=$version Giraffe.Website/Giraffe.Website.fsproj -c Release -o published
10
10
11
11
# Build runtime image
12
- FROM mcr.microsoft.com/dotnet/aspnet:5.0-alpine AS runtime
12
+ FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS runtime
13
+
14
+ # Change the HTTP port that the server process is listening
15
+ # https://learn.microsoft.com/en-us/dotnet/core/compatibility/containers/8.0/aspnet-port
16
+ ENV ASPNETCORE_HTTP_PORTS=5000
13
17
14
18
WORKDIR /app
15
19
COPY --from=build /app/published .
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5 .0</TargetFramework >
4
+ <TargetFramework >net8 .0</TargetFramework >
5
5
<RollForward >Major</RollForward >
6
6
<EnableDefaultContentItems >false</EnableDefaultContentItems >
7
7
<RunWorkingDirectory >$(MSBuildThisFileDirectory)</RunWorkingDirectory >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" Giraffe" Version =" 5.0.0" />
12
- <PackageReference Include =" Giraffe.ViewEngine" Version =" 1.3.*" />
13
- <PackageReference Include =" Ply" Version =" 0.3.*" />
11
+ <PackageReference Include =" Giraffe" Version =" 6.4.0" />
12
+ <PackageReference Include =" Giraffe.ViewEngine" Version =" 1.4.0" />
14
13
<PackageReference Include =" Logfella" Version =" 7.1.*" />
15
14
<PackageReference Include =" Sentry.AspNetCore" Version =" 2.1.*" />
16
15
<PackageReference Include =" Markdig" Version =" 0.22.*" />
Original file line number Diff line number Diff line change @@ -209,7 +209,6 @@ module WebApp =
209
209
open System.Net .Http
210
210
open Microsoft.Extensions .Logging
211
211
open Microsoft.Net .Http .Headers
212
- open FSharp.Control .Tasks
213
212
open Giraffe
214
213
open Giraffe.EndpointRouting
215
214
open Giraffe.ViewEngine
You can’t perform that action at this time.
0 commit comments