diff --git a/git-hangman-lab/scripts/publish-package b/git-hangman-lab/scripts/publish-package index 49da67b..b3c1805 100755 --- a/git-hangman-lab/scripts/publish-package +++ b/git-hangman-lab/scripts/publish-package @@ -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"