12 Commits

Author SHA1 Message Date
lyn
1e7af09245 publish-package: read current link state before re-linking
Gitea's /-/link/{repo} endpoint returns HTTP 400 "invalid argument"
whenever the package already has ANY linked repo, and /-/unlink returns
the same 400 when nothing is linked. Both are non-idempotent. Fix by
GET-ing the package version first, comparing the current repository to
the target, and only unlinking/linking when the state actually needs to
change. Idempotent across repeated publishes of the same image.
2026-04-15 11:03:32 +00:00
7745bc8bbc fix(git-hangman-lab): push docker images via SSH tunnel to bypass Cloudflare body limit
Cloudflare's free plan limits request bodies to ~100MB, causing 413 on large
docker layer pushes. Push through an SSH tunnel directly to the Gitea origin
server on vps.git instead of through Cloudflare.
2026-04-15 01:34:52 +00:00
8fc95aff22 fix(git-hangman-lab): publish-package link - remove password fallback, use only access-token 2026-04-14 23:09:34 +00:00
9bd1452042 feat(git-hangman-lab): publish-package - switch AGENT_ID to repo owner for docker
1. For docker command, look up the repo owner via 'repo search' API
2. Use 'ego-mgr lookup' to get the owner's agent-id
3. Export AGENT_ID to that agent-id so docker push goes to correct namespace
4. Also fix link API auth: use '-u owner:token' (basic auth) instead of
   'Authorization: token' header, since repo owner's 'git' secret is a
   password not a bearer token
2026-04-14 22:17:47 +00:00
436c723a2f fix(git-hangman-lab): publish-package - handle cross-owner repo link gracefully
The link step now:
1. Extracts the actual repo owner from the git remote URL
2. Captures HTTP response status and body
3. Shows a clear warning when the repo belongs to a different owner
  (requires site admin or matching owner), instead of silently failing
2026-04-14 19:46:31 +00:00
lyn
a86b80e83a Logout before release in publish-package trap 2026-04-13 20:54:33 +00:00
lyn
0da1703140 Add docker logout to trap in publish-package docker branch 2026-04-13 20:50:28 +00:00
lyn
f0cb155fa4 Fix linkPackage: type=container, no body, POST only 2026-04-13 16:34:19 +00:00
lyn
b14d3acbba Fix linkPackage URL path: /packages/{owner}/docker/{name}/-/link/{repo_name} 2026-04-13 16:29:05 +00:00
lyn
f0b27d5a1a publish-package: add linkPackage API call after docker push 2026-04-13 16:23:10 +00:00
lyn
ae90cd7e0b publish-package: implement docker branch with lock-mgr and docker login/push 2026-04-13 15:07:20 +00:00
lyn
7f2ca44ef6 Add publish-package placeholder script 2026-04-12 19:15:07 +00:00