Commit 4f447f7c authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

gitlab: upload rpm into generic package repo (Part II)

parent b6d18571
Pipeline #15275 failed with stages
in 3 minutes and 12 seconds
......@@ -52,11 +52,11 @@ publish_rpm:
- mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- cp target/dcache-cta*.tar.gz rpmbuild/SOURCES
- rpmbuild -ba --define "_topdir `pwd`/rpmbuild" target/SPECS/dcache-cta.spec
- PACKAGE=$(ls -1 target/dcache-cta*.tar.gz)
- PACKAGE=$(ls -1 ls -1 rpmbuild/RPMS/noarch/dcache-cta-*)
- PACKAGENAME=$(basename ${PACKAGE})
- VERSION_1=${PACKAGENAME##*-}
- VERSION=${VERSION_1%.tar.gz}
# - '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}'
- 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}'
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