Fix linkPackage URL path: /packages/{owner}/docker/{name}/-/link/{repo_name}
This commit is contained in:
@@ -91,8 +91,8 @@ do_docker() {
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token $TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"repo_name\": \"$REPO_NAME\", \"package_name\": \"${IMAGE}\", \"package_type\": \"docker\", \"version\": \"${TAG}\"}" \
|
||||
"https://git.hangman-lab.top/api/v1/packages/${OWNER}/${REPO_NAME}/link" || 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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user