Restore scratch setup bootstrap and live frontdoor sweep
This commit is contained in:
@@ -16,14 +16,30 @@
|
||||
#>
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$Registry = $env:REGISTRY ?? 'stellaops',
|
||||
[string]$TagSuffix = $env:TAG_SUFFIX ?? 'dev',
|
||||
[string]$SdkImage = $env:SDK_IMAGE ?? 'mcr.microsoft.com/dotnet/sdk:10.0-noble',
|
||||
[string]$RuntimeImage = $env:RUNTIME_IMAGE ?? 'mcr.microsoft.com/dotnet/aspnet:10.0-noble'
|
||||
[string]$Registry,
|
||||
[string]$TagSuffix,
|
||||
[string]$SdkImage,
|
||||
[string]$RuntimeImage
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Continue'
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($Registry)) {
|
||||
$Registry = if ([string]::IsNullOrWhiteSpace($env:REGISTRY)) { 'stellaops' } else { $env:REGISTRY }
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($TagSuffix)) {
|
||||
$TagSuffix = if ([string]::IsNullOrWhiteSpace($env:TAG_SUFFIX)) { 'dev' } else { $env:TAG_SUFFIX }
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($SdkImage)) {
|
||||
$SdkImage = if ([string]::IsNullOrWhiteSpace($env:SDK_IMAGE)) { 'mcr.microsoft.com/dotnet/sdk:10.0-noble' } else { $env:SDK_IMAGE }
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($RuntimeImage)) {
|
||||
$RuntimeImage = if ([string]::IsNullOrWhiteSpace($env:RUNTIME_IMAGE)) { 'mcr.microsoft.com/dotnet/aspnet:10.0-noble' } else { $env:RUNTIME_IMAGE }
|
||||
}
|
||||
|
||||
$Root = git rev-parse --show-toplevel 2>$null
|
||||
if (-not $Root) {
|
||||
Write-Error 'Not inside a git repository.'
|
||||
|
||||
Reference in New Issue
Block a user