summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author陆秋文 <[email protected]>2020-05-18 16:01:00 +0800
committer陆秋文 <[email protected]>2020-05-18 16:01:00 +0800
commit763bc22b2bdabdd2b9498bee6470cb64cd92e2d1 (patch)
tree4ef38ab24f094c58b7a933255e88f3e5a259ce64
parentf936069fd850d158237173846e8c4360cc853eb6 (diff)
增加打包后将RPM包上传到PULP3服务器的功能。v4.3.20-20200518
-rw-r--r--.gitlab-ci.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2fc6d87..989a46e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,11 +29,8 @@ stages:
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=$BUILD_PREFIX
- make package
-
-.deploy_to_package_server:
- script:
- - cp build/*.rpm $RPM_REPO_PATH
- - createrepo --update $RPM_REPO_PATH
+ - cp ~/rpm_upload_tools.py ./
+ - python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm
build-debug:
stage: build
@@ -65,6 +62,8 @@ package-debug:
variables:
BUILD_TYPE: "Debug"
BUILD_PREFIX: "/opt/dpdk-17.11.6-debug"
+ PULP3_REPO_NAME: platform-stable-x86_64.el7
+ PULP3_DIST_NAME: platform-stable-x86_64.el7
artifacts:
name: "mrzcpd-debug-$CI_COMMIT_REF_NAME-binary"
paths:
@@ -80,6 +79,8 @@ package-release:
variables:
BUILD_TYPE: "RelWithDebInfo"
BUILD_PREFIX: "/opt/dpdk-17.11.6-rel"
+ PULP3_REPO_NAME: platform-stable-x86_64.el7
+ PULP3_DIST_NAME: platform-stable-x86_64.el7
artifacts:
name: "mrzcpd-$CI_COMMIT_REF_NAME-binary"
paths: