Fix linkPackage: type=container, no body, POST only

This commit is contained in:
lyn
2026-04-13 16:34:19 +00:00
parent b14d3acbba
commit f0cb155fa4

View File

@@ -90,9 +90,7 @@ do_docker() {
REPO_NAME=$(basename "$REPO")
curl -s -X POST \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
-d "{\"repo_name\": \"$REPO_NAME\"}" \
"https://git.hangman-lab.top/api/v1/packages/${OWNER}/docker/${IMAGE}/-/link/${REPO_NAME}" || true
"https://git.hangman-lab.top/api/v1/packages/${OWNER}/container/${IMAGE}/-/link/${REPO_NAME}" || true
lock-mgr release "$LOCKFILE" "$KEY"