diff options
| author | 童宗振 <[email protected]> | 2024-04-19 05:43:29 +0000 |
|---|---|---|
| committer | 童宗振 <[email protected]> | 2024-04-19 05:43:29 +0000 |
| commit | 8bba4f76e4e4d9f2abdc76af2e78a29744da53ab (patch) | |
| tree | 8ef4a421fe71bd88baeca5e43c97b39572b14dd8 /.gitlab-ci.yml | |
| parent | cb9760c17b16835f0d3f4404c8c767b676faa7e9 (diff) | |
Add repo
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 12 |
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"] |
