scripts: publish unified Agent artifacts and restore CI coverage [CI]
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/push/dev-image Pipeline failed

Remove Probe build jobs and release paths. Transfer Gitea publishing credentials to both Agent architecture jobs, publish each platform archive once, and run slow tests after development images are published.
This commit is contained in:
justme committed 2026-10-21 11:56:06 +08:00
1 parent c9beeee8e3
commit 4515d7b075
14 files changed
+52 -179

No files matched your search

+4 -5
View File
@@ -49,9 +49,8 @@ try {
$uploadFiles = [System.Collections.Generic.List[string]]::new()
foreach ($target in $targets) {
$agentDirectory = Join-Path $root ".release\publish\$($target.Rid)\agent"
$probeDirectory = Join-Path $root ".release\publish\$($target.Rid)\probe"
$enrollDirectory = Join-Path $root ".release\publish\$($target.Rid)\fleet-enroll"
foreach ($path in @($agentDirectory, $probeDirectory, $enrollDirectory)) {
foreach ($path in @($agentDirectory, $enrollDirectory)) {
if (-not (Test-Path -LiteralPath $path -PathType Container)) {
throw "Build output is missing: $path"
}
@@ -64,7 +63,7 @@ try {
if ($LASTEXITCODE -and $LASTEXITCODE -ne 0) { throw "Could not bundle QUIC runtime for $($target.Rid)." }
}
foreach ($role in @('agent', 'probe')) {
foreach ($role in @('agent')) {
$stage = Join-Path $root ".release\stage\$($target.Rid)\$role"
$null = New-Item -ItemType Directory -Force -Path $stage
$extension = if ($target.Windows) { '.exe' } else { '' }
@@ -85,10 +84,10 @@ try {
$systemd = Join-Path $stage 'systemd'
$null = New-Item -ItemType Directory -Force -Path $systemd
Copy-Item -LiteralPath (Join-Path $root "packaging/systemd/moshiro-$role.service") -Destination $systemd
if ($role -eq 'probe') {
if ($role -eq 'agent') {
$openwrt = Join-Path $stage 'openwrt'
$null = New-Item -ItemType Directory -Force -Path $openwrt
Copy-Item -LiteralPath (Join-Path $root 'packaging/openwrt/moshiro-probe.init') -Destination $openwrt
Copy-Item -LiteralPath (Join-Path $root 'packaging/openwrt/moshiro-agent.init') -Destination $openwrt
Copy-Item -LiteralPath (Join-Path $root 'packaging/openwrt/moshiro.keep') -Destination $openwrt
}
}