From 44931260c427297613c3cffa8b00207d8fb9156f Mon Sep 17 00:00:00 2001 From: bunker-admin Date: Mon, 23 Mar 2026 14:07:36 -0600 Subject: [PATCH] Fix build-release.sh Gitea URL for host-side uploads GITEA_URL points to the internal Docker hostname (gitea-changemaker:3000), which is unreachable from the host. Derive external URL from GITEA_REGISTRY instead, which already contains the external hostname. Bunker Admin --- scripts/build-release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build-release.sh b/scripts/build-release.sh index b3e4cf20..9d965413 100755 --- a/scripts/build-release.sh +++ b/scripts/build-release.sh @@ -199,7 +199,9 @@ success "Created: $TARBALL (${TARBALL_SIZE})" if [[ "$UPLOAD" == "true" ]]; then source "$PROJECT_DIR/.env" 2>/dev/null || true GITEA_TOKEN="${GITEA_API_TOKEN:-}" - GITEA_HOST="${GITEA_URL:-https://gitea.bnkops.com}" + # GITEA_URL is the internal Docker hostname — use GITEA_REGISTRY for external access + GITEA_REGISTRY_HOST="${GITEA_REGISTRY%%/*}" # strip /admin path → gitea.bnkops.com + GITEA_HOST="${GITEA_EXTERNAL_URL:-https://${GITEA_REGISTRY_HOST:-gitea.bnkops.com}}" if [[ -z "$GITEA_TOKEN" ]]; then warn "GITEA_API_TOKEN not set — skipping upload"