From dd6a774d059f8e6273cbd732d941c0489590ed2f Mon Sep 17 00:00:00 2001 From: Lu Qiuwen Date: Mon, 19 Nov 2018 19:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=9B=B4=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5dd5036..a78085c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ variables: stages: - build - package +- deploy before_script: - mkdir -p /tmp/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/$CI_PROJECT_NAMESPACE/ @@ -15,6 +16,11 @@ before_script: - chmod +x ./ci/travis.sh - ./ci/travis.sh +.deploy_to_package_server: + script: + - cp build/*.rpm $RPM_REPO_PATH + - createrepo --update $RPM_REPO_PATH + build_debug: stage: build variables: @@ -52,3 +58,29 @@ package_release: - build/*.rpm only: - tags + +deploy_debug: + stage: deploy + tags: + - package-server + dependencies: + - package_debug + variables: + GIT_STRATEGY: "none" + RPM_REPO_PATH: "/data/ci/repos/tango" + extends: .deploy_to_package_server + only: + - tags + +deploy_release: + stage: deploy + tags: + - package-server + dependencies: + - package_debug + variables: + GIT_STRATEGY: "none" + RPM_REPO_PATH: "/data/ci/repos/tango" + extends: .deploy_to_package_server + only: + - tags