Commit ec4e1460 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

gitlab: push rpms to nexus yum repo (Part III)

parent f56cf9bf
Pipeline #15277 passed with stages
in 3 minutes and 35 seconds
......@@ -53,10 +53,7 @@ publish_rpm:
- cp target/dcache-cta*.tar.gz rpmbuild/SOURCES
- rpmbuild -ba --define "_topdir `pwd`/rpmbuild" target/SPECS/dcache-cta.spec
- PACKAGE=$(ls -1 rpmbuild/RPMS/noarch/dcache-cta-*)
- PACKAGENAME=$(basename ${PACKAGE})
- VERSION_1=${PACKAGENAME##*-}
- VERSION=${VERSION_1%.noarch.rpm}
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file ${PACKAGE} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/v${VERSION}/${PACKAGENAME}'
- 'curl -sS -u ${YUM_REPO_USER}:${YUM_REPO_PASS} --upload-file ${PACKAGE} ${YUM_REPO_URL}/pkgs/noarch/`basename ${PACKAGE}`'
test:
stage: build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment