Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
dcache-cta
Commits
ec4e1460
Commit
ec4e1460
authored
Dec 22, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ec4e1460
...
@@ -53,10 +53,7 @@ publish_rpm:
...
@@ -53,10 +53,7 @@ publish_rpm:
-
cp target/dcache-cta*.tar.gz rpmbuild/SOURCES
-
cp target/dcache-cta*.tar.gz rpmbuild/SOURCES
-
rpmbuild -ba --define "_topdir `pwd`/rpmbuild" target/SPECS/dcache-cta.spec
-
rpmbuild -ba --define "_topdir `pwd`/rpmbuild" target/SPECS/dcache-cta.spec
-
PACKAGE=$(ls -1 rpmbuild/RPMS/noarch/dcache-cta-*)
-
PACKAGE=$(ls -1 rpmbuild/RPMS/noarch/dcache-cta-*)
-
PACKAGENAME=$(basename ${PACKAGE})
-
'
curl
-sS
-u
${YUM_REPO_USER}:${YUM_REPO_PASS}
--upload-file
${PACKAGE}
${YUM_REPO_URL}/pkgs/noarch/`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}'
test
:
test
:
stage
:
build
stage
:
build
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment