16 lines
471 B
PowerShell
16 lines
471 B
PowerShell
. "$PSScriptRoot\lib\common.ps1"
|
|
|
|
Write-Step "Restoring .NET packages"
|
|
Invoke-DotNet restore Cortex.slnx --configfile NuGet.Config
|
|
|
|
Write-Step "Building Cortex"
|
|
Invoke-DotNet build Cortex.slnx --configuration Release --no-restore
|
|
|
|
Write-Step "Building local Docker image"
|
|
Assert-Docker
|
|
Invoke-CortexCompose build cortex-app
|
|
|
|
Write-Step "Building optional web UI Docker image"
|
|
$webBuildArgs = @("--profile", "ui", "build", "cortex-web")
|
|
Invoke-CortexCompose @webBuildArgs
|