fix: use Nexus V3 Components API for yum RPM uploads

Agent-Logs-Url: https://github.com/funkemunky/KDE-x86_64-v4-Fedora/sessions/b5577f4d-b327-4a2f-b8a4-eb739eadc362

Co-authored-by: funkemunky <30784509+funkemunky@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-19 16:23:58 +00:00
committed by GitHub
parent b32bebe307
commit a7a2b813d2
+4 -3
View File
@@ -264,9 +264,10 @@ jobs:
PACKAGE_ROOT="repo/fedora43-x86-64-v3/packages"
find "${PACKAGE_ROOT}" -type f -name '*.rpm' | while read -r FILEPATH; do
FILENAME="$(basename "${FILEPATH}")"
REMOTE_URL="${NEXUS_BASE_URL}/repository/${NEXUS_REPOSITORY}/${FILENAME}"
curl --fail --show-error --silent \
--user "${NEXUS_USER}:${NEXUS_PASSWORD}" \
--upload-file "${FILEPATH}" \
"${REMOTE_URL}"
-X POST "${NEXUS_BASE_URL}/service/rest/v1/components?repository=${NEXUS_REPOSITORY}" \
-H "Content-Type: multipart/form-data" \
-F "yum.asset=@${FILEPATH};type=application/x-rpm" \
-F "yum.asset.filename=${FILENAME}"
done