-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.fsx
49 lines (38 loc) · 1.38 KB
/
build.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#r "paket:
version 7.0.2
framework: net6.0
source https://api.nuget.org/v3/index.json
nuget Be.Vlaanderen.Basisregisters.Build.Pipeline 6.0.3 //"
#load "packages/Be.Vlaanderen.Basisregisters.Build.Pipeline/Content/build-generic.fsx"
open Fake.Core
open Fake.Core.TargetOperators
open Fake.IO
open Fake.IO.FileSystemOperators
open ``Build-generic``
let product = "Basisregisters Vlaanderen"
let copyright = "Copyright (c) Vlaamse overheid"
let company = "Vlaamse overheid"
let dockerRepository = "registries-maintenance"
let assemblyVersionNumber = (sprintf "2.%s")
Target.create "Publish" ignore
Target.create "Containerize" ignore
Target.create "Push" ignore
Target.create "Publish_RebuildIndexes" (fun _ ->
let filterAllFiles = (fun _ -> true)
let dockerBuildDirectory = buildDir @@ "RebuildSqlIndexes" @@ "linux"
Shell.copyDir dockerBuildDirectory ("src" @@ "sql-server" @@ "rebuild-indexes") filterAllFiles
)
Target.create "Containerize_RebuildSqlIndexes" (fun _ -> containerize dockerRepository "RebuildSqlIndexes" "rebuild-sql-indexes")
Target.create "PushContainer_RebuildSqlIndexes" (fun _ -> push dockerRepository "rebuild-sql-indexes")
"NpmInstall"
==> "Clean"
==> "Publish_RebuildIndexes"
==> "Publish"
"Publish"
==> "Containerize_RebuildSqlIndexes"
==> "Containerize"
"Containerize"
==> "DockerLogin"
==> "PushContainer_RebuildSqlIndexes"
==> "Push"
Target.runOrDefault "Containerize"