fix: use public URL (mysources.co.uk) for package install instructions
All checks were successful
CI/CD / typecheck (push) Successful in 48s
CI/CD / test (push) Successful in 59s
CI/CD / lint (push) Successful in 2m8s
CI/CD / build (push) Successful in 3m49s
CI/CD / publish-rpm (push) Successful in 38s
CI/CD / publish-deb (push) Successful in 23s
CI/CD / smoke (push) Successful in 8m23s

Internal API calls still use 10.0.0.194:3012, but all user-facing
install instructions now use the public GITEA_PUBLIC_URL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michal
2026-03-10 09:47:38 +00:00
parent 9c479e5615
commit 6e84631d59
5 changed files with 11 additions and 7 deletions

View File

@@ -55,10 +55,11 @@ for p in json.load(sys.stdin):
fi
# API not available (Gitea < 1.24) — warn with manual instructions
local PUBLIC_URL="${GITEA_PUBLIC_URL:-${GITEA_URL}}"
echo ""
echo "WARNING: Could not auto-link ${PKG_TYPE}/${PKG_NAME} to repository (Gitea < 1.24)."
echo "Link it manually in the Gitea UI:"
echo " ${GITEA_URL}/${GITEA_OWNER}/-/packages/${PKG_TYPE}/${PKG_NAME}/settings"
echo " ${PUBLIC_URL}/${GITEA_OWNER}/-/packages/${PKG_TYPE}/${PKG_NAME}/settings"
echo " -> Link to repository: ${GITEA_OWNER}/${GITEA_REPO}"
return 0
}