Fix linkPackage: type=container, no body, POST only
This commit is contained in:
@@ -90,9 +90,7 @@ do_docker() {
|
|||||||
REPO_NAME=$(basename "$REPO")
|
REPO_NAME=$(basename "$REPO")
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
"https://git.hangman-lab.top/api/v1/packages/${OWNER}/container/${IMAGE}/-/link/${REPO_NAME}" || true
|
||||||
-d "{\"repo_name\": \"$REPO_NAME\"}" \
|
|
||||||
"https://git.hangman-lab.top/api/v1/packages/${OWNER}/docker/${IMAGE}/-/link/${REPO_NAME}" || true
|
|
||||||
|
|
||||||
lock-mgr release "$LOCKFILE" "$KEY"
|
lock-mgr release "$LOCKFILE" "$KEY"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user