Improve release QA deployment checks
This commit is contained in:
@@ -53,7 +53,19 @@ if ($BackupRetention -lt 0) {
|
||||
}
|
||||
|
||||
$timestamp = Get-Date -Format "yyyyMMddHHmmss"
|
||||
$fullCommit = (git rev-parse HEAD).Trim()
|
||||
$commit = (git rev-parse --short=8 HEAD).Trim()
|
||||
$qaVersion = if ($env:PUBLIC_QA_VERSION) { $env:PUBLIC_QA_VERSION } else { "deploy-$timestamp" }
|
||||
$releaseManifestPath = Join-Path $dist "release-manifest.json"
|
||||
@{
|
||||
app = "heros_web"
|
||||
commit = $fullCommit
|
||||
shortCommit = $commit
|
||||
qaVersion = $qaVersion
|
||||
generatedAt = (Get-Date).ToUniversalTime().ToString("o")
|
||||
} | ConvertTo-Json -Depth 4 | Set-Content -LiteralPath $releaseManifestPath -Encoding UTF8
|
||||
Write-Host "Wrote $releaseManifestPath for $commit ($qaVersion)"
|
||||
|
||||
$userHost = "$SshUser@$SshHost"
|
||||
$remoteTemp = "$RemoteRoot/.$($SiteName)_deploy_$timestamp"
|
||||
$remotePrevious = "$RemoteRoot/.$($SiteName)_previous_$timestamp"
|
||||
|
||||
Reference in New Issue
Block a user