summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
author童宗振 <[email protected]>2024-04-19 05:43:29 +0000
committer童宗振 <[email protected]>2024-04-19 05:43:29 +0000
commit8bba4f76e4e4d9f2abdc76af2e78a29744da53ab (patch)
tree8ef4a421fe71bd88baeca5e43c97b39572b14dd8 /.gitlab-ci.yml
parentcb9760c17b16835f0d3f4404c8c767b676faa7e9 (diff)
Add repo
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8a16f1d..41460e8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,7 +32,13 @@ stages:
- cd build
- cmake3 .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
- make VERBOSE=1
- - make package
+ - if [[ "${ENABLE_PACKAGE}" == "True" ]]; then
+ make package VERBOSE=1;
+ cp ~/rpm_upload_tools.py ./;
+ python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm;
+ else
+ echo "no need to execute the deploy script";
+ fi
build:
stage: build
@@ -48,6 +54,10 @@ build:
deploy:
stage: deploy
extends: .build
+ variables:
+ ENABLE_PACKAGE: "True"
+ PULP3_REPO_NAME: "platform-stable-x86_64.el8"
+ PULP3_DIST_NAME: "platform-stable-x86_64.el8"
parallel:
matrix:
- BUILD_TYPE: ["RelWithDebInfo"]