From ce30828ed3d7cffdc4efbca811e4fbe9e2c0b3d2 Mon Sep 17 00:00:00 2001 From: JustMe Date: Mon, 5 Oct 2026 01:10:17 +0800 Subject: [PATCH] ci: use runner-local Gitea package endpoints --- .woodpecker/linux-release.yml | 4 ++-- .woodpecker/windows-release.yml | 4 ++-- ci/release-linux.sh | 2 +- ci/release-windows.ps1 | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.woodpecker/linux-release.yml b/.woodpecker/linux-release.yml index 697b599..e01ecfd 100644 --- a/.woodpecker/linux-release.yml +++ b/.woodpecker/linux-release.yml @@ -22,7 +22,7 @@ steps: image: bash environment: NUGET_PACKAGES: /home/justme/.nuget/packages - GITEA_BASE: https://git.oeo.one + GITEA_BASE: http://192.168.2.162:3100 GITEA_TOKEN: from_secret: gitea_token ZOT_REGISTRY: 192.168.2.162:5000 @@ -38,7 +38,7 @@ steps: image: bash environment: NUGET_PACKAGES: /home/justme/.nuget/packages - GITEA_BASE: https://git.oeo.one + GITEA_BASE: http://192.168.2.162:3100 GITEA_TOKEN: from_secret: gitea_token ZOT_REGISTRY: 192.168.2.162:5000 diff --git a/.woodpecker/windows-release.yml b/.woodpecker/windows-release.yml index ce7dde7..04db764 100644 --- a/.woodpecker/windows-release.yml +++ b/.woodpecker/windows-release.yml @@ -21,7 +21,7 @@ steps: - name: windows-amd64 image: powershell environment: - GITEA_BASE: https://git.oeo.one + GITEA_BASE: http://localhost:3100 GITEA_TOKEN: from_secret: gitea_token commands: @@ -32,7 +32,7 @@ steps: - name: windows-arm64 image: powershell environment: - GITEA_BASE: https://git.oeo.one + GITEA_BASE: http://localhost:3100 GITEA_TOKEN: from_secret: gitea_token commands: diff --git a/ci/release-linux.sh b/ci/release-linux.sh index 15db69a..82d878f 100644 --- a/ci/release-linux.sh +++ b/ci/release-linux.sh @@ -14,7 +14,7 @@ version="${CI_COMMIT_TAG#v}" [[ -n "${GITEA_TOKEN:-}" ]] || { echo "GITEA_TOKEN is required" >&2; exit 2; } [[ -n "${ZOT_USERNAME:-}" && -n "${ZOT_PASSWORD:-}" ]] || { echo "Zot credentials are required" >&2; exit 2; } -gitea_base="${GITEA_BASE:-https://git.oeo.one}" +gitea_base="${GITEA_BASE:-http://192.168.2.162:3100}" gitea_host="${gitea_base#https://}" gitea_host="${gitea_host#http://}" gitea_host="${gitea_host%%/*}" diff --git a/ci/release-windows.ps1 b/ci/release-windows.ps1 index 432b541..b634da2 100644 --- a/ci/release-windows.ps1 +++ b/ci/release-windows.ps1 @@ -75,7 +75,7 @@ Publish-Aot 'agent/src/Monitor.Agent' $agentOut Publish-Aot 'probe/src/Monitor.Probe' $probeOut Publish-Aot 'fleet/tools/fleet-enroll' $enrollOut -$giteaBase = if ($env:GITEA_BASE) { $env:GITEA_BASE.TrimEnd('/') } else { 'https://git.oeo.one' } +$giteaBase = if ($env:GITEA_BASE) { $env:GITEA_BASE.TrimEnd('/') } else { 'http://localhost:3100' } $netrc = Join-Path $env:TEMP ("monitor-gitea-$([guid]::NewGuid().ToString('N')).netrc") $giteaHost = ([Uri]$giteaBase).Host Set-Content -LiteralPath $netrc -Value "machine $giteaHost login justme password $($env:GITEA_TOKEN)" -Encoding ascii -NoNewline