2026-05-02 08:26:18 +12:00
|
|
|
[CmdletBinding()]
|
|
|
|
|
param(
|
2026-05-03 15:56:04 +12:00
|
|
|
[switch]$Force,
|
|
|
|
|
[switch]$SkipSiteCheck,
|
|
|
|
|
[string]$Service
|
2026-05-02 08:26:18 +12:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
|
|
|
$repoRoot = Split-Path -Parent $scriptDir
|
2026-05-03 15:56:04 +12:00
|
|
|
$rootDeployScript = Join-Path $repoRoot 'deploy.ps1'
|
2026-05-02 08:26:18 +12:00
|
|
|
|
2026-05-03 15:56:04 +12:00
|
|
|
if (-not (Test-Path -LiteralPath $rootDeployScript)) {
|
|
|
|
|
throw "Root deploy script not found: $rootDeployScript"
|
2026-05-02 08:26:18 +12:00
|
|
|
}
|
|
|
|
|
|
2026-05-03 15:56:04 +12:00
|
|
|
Write-Warning 'scripts/deploy.ps1 is deprecated. Use .\deploy.ps1 from the repo root instead.'
|
2026-05-02 08:26:18 +12:00
|
|
|
|
2026-05-03 15:56:04 +12:00
|
|
|
& $rootDeployScript @PSBoundParameters
|
2026-05-02 08:26:18 +12:00
|
|
|
|
2026-05-03 15:56:04 +12:00
|
|
|
if ($LASTEXITCODE -ne 0) {
|
|
|
|
|
exit $LASTEXITCODE
|
|
|
|
|
}
|