ci: restore public Gitea package endpoint

This commit is contained in:
justme committed 2026-10-04 23:11:37 +08:00
1 parent 31af31b96f
commit c33003c279
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ steps:
image: bash image: bash
environment: environment:
NUGET_PACKAGES: /home/justme/.nuget/packages NUGET_PACKAGES: /home/justme/.nuget/packages
GITEA_BASE: http://gitea:3000 GITEA_BASE: https://git.oeo.one
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
ZOT_REGISTRY: 192.168.2.162:5000 ZOT_REGISTRY: 192.168.2.162:5000
@@ -32,7 +32,7 @@ steps:
image: bash image: bash
environment: environment:
NUGET_PACKAGES: /home/justme/.nuget/packages NUGET_PACKAGES: /home/justme/.nuget/packages
GITEA_BASE: http://gitea:3000 GITEA_BASE: https://git.oeo.one
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
ZOT_REGISTRY: 192.168.2.162:5000 ZOT_REGISTRY: 192.168.2.162:5000
+2 -2
View File
@@ -15,7 +15,7 @@ steps:
- name: windows-amd64 - name: windows-amd64
image: powershell image: powershell
environment: environment:
GITEA_BASE: http://gitea:3000 GITEA_BASE: https://git.oeo.one
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
commands: commands:
@@ -26,7 +26,7 @@ steps:
- name: windows-arm64 - name: windows-arm64
image: powershell image: powershell
environment: environment:
GITEA_BASE: http://gitea:3000 GITEA_BASE: https://git.oeo.one
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
commands: commands:
+1 -1
View File
@@ -14,7 +14,7 @@ version="${CI_COMMIT_TAG#v}"
[[ -n "${GITEA_TOKEN:-}" ]] || { echo "GITEA_TOKEN is required" >&2; exit 2; } [[ -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; } [[ -n "${ZOT_USERNAME:-}" && -n "${ZOT_PASSWORD:-}" ]] || { echo "Zot credentials are required" >&2; exit 2; }
gitea_base="${GITEA_BASE:-http://gitea:3000}" gitea_base="${GITEA_BASE:-https://git.oeo.one}"
gitea_host="${gitea_base#https://}" gitea_host="${gitea_base#https://}"
gitea_host="${gitea_host#http://}" gitea_host="${gitea_host#http://}"
gitea_host="${gitea_host%%/*}" gitea_host="${gitea_host%%/*}"
+1 -1
View File
@@ -75,7 +75,7 @@ Publish-Aot 'agent/src/Monitor.Agent' $agentOut
Publish-Aot 'probe/src/Monitor.Probe' $probeOut Publish-Aot 'probe/src/Monitor.Probe' $probeOut
Publish-Aot 'fleet/tools/fleet-enroll' $enrollOut Publish-Aot 'fleet/tools/fleet-enroll' $enrollOut
$giteaBase = if ($env:GITEA_BASE) { $env:GITEA_BASE.TrimEnd('/') } else { 'http://gitea:3000' } $giteaBase = if ($env:GITEA_BASE) { $env:GITEA_BASE.TrimEnd('/') } else { 'https://git.oeo.one' }
$netrc = Join-Path $env:TEMP ("monitor-gitea-$([guid]::NewGuid().ToString('N')).netrc") $netrc = Join-Path $env:TEMP ("monitor-gitea-$([guid]::NewGuid().ToString('N')).netrc")
$giteaHost = ([Uri]$giteaBase).Host $giteaHost = ([Uri]$giteaBase).Host
Set-Content -LiteralPath $netrc -Value "machine $giteaHost login justme password $($env:GITEA_TOKEN)" -Encoding ascii -NoNewline Set-Content -LiteralPath $netrc -Value "machine $giteaHost login justme password $($env:GITEA_TOKEN)" -Encoding ascii -NoNewline