14 lines
416 B
PowerShell
14 lines
416 B
PowerShell
$ErrorActionPreference = "Continue"
|
|
|
|
$repositoryRoot = Split-Path -Parent $PSScriptRoot
|
|
Set-Location $repositoryRoot
|
|
|
|
& docker compose --env-file deploy/env/local.env -f compose.yaml -f deploy/compose.local.yaml build --pull
|
|
$exitCode = $LASTEXITCODE
|
|
|
|
if ($exitCode -eq 0) {
|
|
Write-Output "Next: docker compose --env-file deploy/env/local.env -f compose.yaml -f deploy/compose.local.yaml up -d"
|
|
}
|
|
|
|
exit $exitCode
|